wintermute123 / youtube-upload

Automatically exported from code.google.com/p/youtube-upload
0 stars 0 forks source link

pycurl.error: (56, 'GnuTLS recv error (-9): A TLS packet with unexpected length was received.') #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
= Versions

youtube-upload: 0.7.1
python: 2.7.3
python-gdata: 2.0.17
pycurl: 7.19.0

= Describe the steps (including the command you run) that will reproduce
the problem?

File is uploaded, but after some time i get error:

$youtube_upload.py --email=xxxxxxxxxxxxx@gmail.com --password=xxxxxxxxxx 
--title="Aaa" --category=Games --private '/media/Dysk3/tf/Untitled.wmv' 
Login to Youtube API: email='xxxxxxxxxxx@gmail.com', 
password='******************'
Start upload using a HTTP post: /media/Dysk3/tf/Untitled.wmv
Traceback (most recent call last):                   | ETA:  5:38:23  30.98 kB/s
  File "youtube_upload.py", line 448, in <module>
    sys.exit(catch_exceptions(EXIT_CODES, main_upload, sys.argv[1:]))
  File "youtube_upload.py", line 104, in catch_exceptions
    fun(*args, **kwargs)
  File "youtube_upload.py", line 433, in main_upload
    post(data["post_url"], {"file": video_path}, {"token": data["token"]})
  File "youtube_upload.py", line 154, in post
    c.perform()
pycurl.error: (56, 'GnuTLS recv error (-9): A TLS packet with unexpected length 
was received.')

I don't have limit on my YT account, file is about 600MB, my internet upload 
speed 256Kb/s

Original issue reported on code.google.com by MrDooB...@gmail.com on 25 Jul 2012 at 11:39

GoogleCodeExporter commented 8 years ago
> pycurl.error: (56, 'GnuTLS recv error (-9): A TLS packet with unexpected 
length was received.')

I had never seen that error (same packages here, ArchLinux), cannot reproduce. 
Clearly the server and curl are having trouble understanding each other. 

Google shows the error but I've not able to see a common pattern of the problem.

Is the error systematic? always at the same point? what happens with smaller 
videos? what if you try from a faster network?

Original comment by tokland on 25 Jul 2012 at 12:26

GoogleCodeExporter commented 8 years ago
> Is the error systematic? always at the same point?

During the two trials once it happened at 45%, and once at 3%

Now I'm trying with the option --api-upload

Later I will try with smaller files.

Original comment by MrDooB...@gmail.com on 25 Jul 2012 at 2:27

GoogleCodeExporter commented 8 years ago
--api-upload does not use curl, so it almost certainly it will work (but it's 
not a nice upload, no feedback).

ok, let me posted.

Original comment by tokland on 26 Jul 2012 at 6:59

GoogleCodeExporter commented 8 years ago

Original comment by tokland on 15 Aug 2012 at 6:10

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hello,

I have almost the same problem but my file is 4,32 GB big and it is not 
uploaded because the error interrupts the upload.

Versions
youtube-upload: 0.7.3
Python: 2.7.3
python-gdata: Which command shows me the version?
pycurl: Which command shows me the version?

Login to Youtube API: email='########@googlemail.com', 
password='*******************'
Start upload using a HTTP post: Hard Corps Uprising - Fail Compilation.mp4 -> 
https://uploads.gdata.youtube.com/action/FormDataUpload/AIwbFAQ0-m4QrkfbcV6XwkzY
p400g8h_H-fOFnfGY7_yHsVvpkE54bF8YQSkS8RGFKA-eB32268h70Optg1tDbdx0AZMNgI2eA
Traceback (most recent call last):                   | ETA:  08:27:25 114.53 K/s
  File "/usr/local/bin/youtube-upload", line 519, in <module>
    sys.exit(catch_exceptions(EXIT_CODES, main, sys.argv[1:]))
  File "/usr/local/bin/youtube-upload", line 111, in catch_exceptions
    fun(*args, **kwargs)
  File "/usr/local/bin/youtube-upload", line 516, in main
    run_main(parser, options, args)
  File "/usr/local/bin/youtube-upload", line 449, in run_main
    url = upload_video(youtube, options, video_path, len(args), index)
  File "/usr/local/bin/youtube-upload", line 368, in upload_video
    show_progressbar=not(options.hide_progressbar))
  File "/usr/local/bin/youtube-upload", line 164, in post
    c.perform()
pycurl.error: (56, 'GnuTLS recv error (-9): A TLS packet with unexpected length 
was received.')

Original comment by apexgami...@gmail.com on 2 Dec 2013 at 3:42

GoogleCodeExporter commented 8 years ago
@apexgaming42. Unfortunately OP didn't give more feedback and I don't have more 
information on the issue. Try to google a bit to see if you find something. 
Also, you can try to upload with the other method, though 4Gb without feedback 
is certainly painful

Original comment by tokland on 2 Dec 2013 at 8:02

GoogleCodeExporter commented 8 years ago

Original comment by tokland on 13 May 2014 at 2:55