Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precondition check failed #1890

Open
mengfeishang opened this issue Mar 6, 2024 · 2 comments
Open

Precondition check failed #1890

mengfeishang opened this issue Mar 6, 2024 · 2 comments
Labels

Comments

@mengfeishang
Copy link

An error occurred in the title function in the main . py. Below is the information for self.vid-info
{'error': {'code': 400, 'message': 'Precondition check failed.', 'errors': [{'message': 'Precondition check failed.', 'domain': 'global', 'reason': 'failedPrecondition'}], 'status': 'FAILED_PRECONDITION'}}

Copy link

github-actions bot commented Mar 6, 2024

Thank you for contributing to PyTube. Please remember to reference Contributing.md

@YuriiMaiboroda
Copy link

In __main__.py file in bypass_age_gate function try to change client='ANDROID' to client='ANDROID_EMBED' in InnerTube constructor.
Also try to do this change in innertube.py for default value of client argument.

It helps for me.

YuriiMaiboroda added a commit to YuriiMaiboroda/pytube that referenced this issue Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants