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

Unable to Upload Video #11

Open
gauravzazz opened this issue Feb 10, 2023 · 2 comments
Open

Unable to Upload Video #11

gauravzazz opened this issue Feb 10, 2023 · 2 comments

Comments

@gauravzazz
Copy link

Hi Yusufusta, great work
This code used to run on previous commit but getting following error :

File "D:\ytstudio\examples\upload_video.py", line 23, in main
print(f"successfully uploaded! videoId: {sonuc['videoId']}")

KeyError: 'videoId'

Do you have any idea why this is popping up ?
Thanks in advance.

@sguzman
Copy link

sguzman commented Apr 26, 2023

Hello. I assume this is because the video was not successfully uploaded for some reason and thus there is no video ID generated. Could you verify if the upload was successful? I experienced the same issue.

The KeyError is not the main issue; it's just that it will attempt to index the id even in failure.

@sguzman
Copy link

sguzman commented Apr 26, 2023

I forgot to add something! The reason I was getting upload failures was because the title and descriptions in my case were not properly formatted or contained invalid characters.

{'error': {'code': 400, 'message': 'Invalid value at 'initial_metadata.title' (type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.MdeTitleUpdateRequest)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants