copiesofcopies / youtube-transcription

Apache License 2.0
72 stars 8 forks source link

gdata.youtube internal server error #9

Open mtdukes opened 11 years ago

mtdukes commented 11 years ago

This may just be user error on my part, but I'm getting an "Internal Server Error" from gdata.youtube when I run upload-videos.py. It throws the error after working for about an hour. Here's the traceback:

Traceback (most recent call last):
    File "upload-videos.py", line 174, in <module>
        uploaded_vid = upload_video(fn, metadata)
    File "upload-videos.py", line 72, in upload_video
        new_entry = yt_service.InsertVideoEntry(video_entry, filename)
    File "/Users/md174/.virtualenvs/youtube-transcription/lib/python2.7/site-packages/gdata/youtube/service.py", line 661, in InsertVideoEntry
        raise YouTubeError(e.args[0])
gdata.youtube.service.YouTubeError: {'status': 500, 'body': 'Internal Error', 'reason': 'Internal Server Error'}
copiesofcopies commented 11 years ago

Thanks for the report! This is after an hour uploading a single video, or an hour running the script, uploading multiple videos? (I'm sure it's not user error, the scripts still need more error handling.)

mtdukes commented 11 years ago

The error triggers about an hour after it started uploading a single video. It is a long one: 1:19:17 at 594.7 MB. Not sure if that matters, but my account is YouTube account is verified, so it should allow longer videos. Let me know if I can pass along any other useful information.

copiesofcopies commented 11 years ago

My guess is that this is legitimately a 500 (i.e. a problem with YouTube's server software). Unfortunately, they are no longer supporting this library, so I doubt I'll be able to get them to do anything about it. This is yet another reason to use the latest API for uploading (which I wasn't doing because some features I need aren't supported yet). Was this on the first try with this video?

mtdukes commented 11 years ago

This is try no. 2 with this particular video. Got the same result when I tried yesterday.

copiesofcopies commented 11 years ago

At the same point in the upload?

On 04/16/2013 10:02 AM, Tyler Dukes wrote:

This is try no. 2 with this particular video. Got the same result when I tried yesterday.

— Reply to this email directly or view it on GitHub https://github.com/copiesofcopies/youtube-transcription/issues/9#issuecomment-16457415.

mtdukes commented 11 years ago

Not sure actually, doesn't look like there was an indicator of any progress. Here's the readout immediately preceding the error:

INFO: Downloading video from /Users/md174/Documents/development/youtube-transcription/youtube-transcription/jane-mayer.mp4...

INFO: Uploading video from /Users/md174/Documents/development/youtube-transcription/youtube-transcription/jane-mayer.mp4 to YouTube...
copiesofcopies commented 11 years ago

Yeah, unfortunately (unlike for downloading) there's no straightforward way to get the progress of the InsertVideoEntry call. I will try to duplicate & also look into moving uploading to the new API. If you get a chance to try a different video of similar size, format, and content, that might be a helpful sanity check. Thanks again.

mtdukes commented 11 years ago

Just tried again with a smaller video (5:00 min, 43.1MB) and got the same error message. If there's anything else you need to help debug, let me know.

waldoj commented 11 years ago

I'm doing a whole mess of uploads overnight. I've detached via screen, and I'll check back tomorrow night and see how things go—here's hoping I can't reproduce this issue. :)