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

api-samples / python / upload_video.py - bug in resumable_upload #6

Open
CarlFK opened this issue May 12, 2014 · 1 comment
Open

api-samples / python / upload_video.py - bug in resumable_upload #6

CarlFK opened this issue May 12, 2014 · 1 comment

Comments

@CarlFK
Copy link

CarlFK commented May 12, 2014

I first posted here
https://code.google.com/p/youtube-api-samples/issues/detail?id=11
This is the same problem, better report.

The bug is in the sample code, not the API.

The important lines
https://github.com/youtube/api-samples/blob/master/python/upload_video.py#L131-L135

def resumable_upload(insert_request):
while response is None:
status, response = insert_request.next_chunk()
if 'id' in response:

while response is None - response will be None when there are more chunks to upload (fine)

if 'id' in response - this will error when response is None. (bug)

@jack17529
Copy link

Any active member in Youtube ?

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