aptonic / dropzone4-actions

Add-on actions and API Docs for Dropzone 4
https://aptonic.com
363 stars 57 forks source link

YouTube Uploader fails: 'execution expired' Google::Apis::TransmissionError #110

Closed gtallen1187 closed 4 years ago

gtallen1187 commented 4 years ago

I previously opened #108 when i was having trouble uploading mp4 files, and thanks to the timely fix, I'm now able to upload most mp4 files without issue! So thanks again.

Unfortunately, it looks like I'm now running into a different issue, and my preliminary guess at a prognosis is due to file size. Most of the videos I upload are over 500MB, and whenever I try to upload any longer than a short 30-second clip, I'm getting the error below. Any help would be greatly appreciated!

[Launching task with command line: runner.rb task-72175]

Task description file task-72175:

ACTION: "/Users/gregallen/Library/Application Support/Dropzone/Actions/YouTube Uploader.dzbundle"
EVENT: "dragged"
VARIABLE: "support_folder" "/Users/gregallen/Library/Application Support/Dropzone"
VARIABLE: "dragged_type" "files"
VARIABLE: "app_version" "4.0.5"
VARIABLE: "expires_at" "1587596563"
VARIABLE: "refresh_token" "••••"
VARIABLE: "privacy" "Private"
VARIABLE: "access_token" "••••"
VARIABLE: "client_id" "••••"
VARIABLE: "client_secret" "••••"
ITEMS: "/Users/gregallen/Google Drive/Louis_CK/Horace & Pete/HORACE_AND_PETE_01x04_1080.mp4"

Determinate: 0
Begin_Message: Connecting to YouTube...
Save_Value_Name: privacy
Save_Value: Private
Begin_Message: Uploading HORACE_AND_PETE_01x04_1080.mp4 to YouTube...
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:322:in `syswrite': execution expired (Google::Apis::TransmissionError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:322:in `do_write'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:339:in `block in write'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:338:in `each'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:338:in `inject'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:338:in `write'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:80:in `<<'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/http.rb:582:in `dump_file'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/http.rb:508:in `dump'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/http.rb:962:in `dump'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:517:in `block in query'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/timeout.rb:103:in `timeout'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:515:in `query'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:177:in `query'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1242:in `do_get_block'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1104:in `follow_redirect'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:854:in `request'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:765:in `post'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/upload.rb:228:in `send_upload_command'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/upload.rb:254:in `execute_once'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/http_command.rb:113:in `block (2 levels) in execute'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `times'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/http_command.rb:110:in `block in execute'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `times'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/http_command.rb:102:in `execute'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/base_service.rb:360:in `execute_or_queue_command'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/generated/google/apis/youtube_v3/service.rb:4029:in `insert_video'
    from /Users/gregallen/Library/Application Support/Dropzone/Actions/YouTube Uploader.dzbundle/youtube.rb:63:in `upload_video'
    from /Users/gregallen/Library/Application Support/Dropzone/Actions/YouTube Uploader.dzbundle/action.rb:26:in `block in dragged'
    from /Users/gregallen/Library/Application Support/Dropzone/Actions/YouTube Uploader.dzbundle/action.rb:25:in `each'
    from /Users/gregallen/Library/Application Support/Dropzone/Actions/YouTube Uploader.dzbundle/action.rb:25:in `dragged'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/runner.rb:74:in `call'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/runner.rb:74:in `<main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:322:in `syswrite': execution expired (HTTPClient::SendTimeoutError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:322:in `do_write'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:339:in `block in write'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:338:in `each'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:338:in `inject'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/openssl/buffering.rb:338:in `write'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:80:in `<<'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/http.rb:582:in `dump_file'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/http.rb:508:in `dump'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/http.rb:962:in `dump'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:517:in `block in query'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/timeout.rb:103:in `timeout'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:515:in `query'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:177:in `query'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1242:in `do_get_block'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:1104:in `follow_redirect'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:854:in `request'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/httpclient-2.8.3/lib/httpclient.rb:765:in `post'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/upload.rb:228:in `send_upload_command'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/upload.rb:254:in `execute_once'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/http_command.rb:113:in `block (2 levels) in execute'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `times'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/http_command.rb:110:in `block in execute'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `times'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/http_command.rb:102:in `execute'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/lib/google/apis/core/base_service.rb:360:in `execute_or_queue_command'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/bundled-gems/ruby/2.6.0/gems/google-api-client-0.32.1/generated/google/apis/youtube_v3/service.rb:4029:in `insert_video'
    from /Users/gregallen/Library/Application Support/Dropzone/Actions/YouTube Uploader.dzbundle/youtube.rb:63:in `upload_video'
    from /Users/gregallen/Library/Application Support/Dropzone/Actions/YouTube Uploader.dzbundle/action.rb:26:in `block in dragged'
    from /Users/gregallen/Library/Application Support/Dropzone/Actions/YouTube Uploader.dzbundle/action.rb:25:in `each'
    from /Users/gregallen/Library/Application Support/Dropzone/Actions/YouTube Uploader.dzbundle/action.rb:25:in `dragged'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/runner.rb:74:in `call'
    from /Applications/Setapp/Dropzone.app/Contents/Actions/lib/runner.rb:74:in `<main>'

[Task completed]
aptonic commented 4 years ago

I've just made some changes to the YouTube uploader action that I'm hoping might fix this. Can you try downloading and installing the updated action (v2.3) from https://github.com/aptonic/dropzone4-actions-zipped/raw/master/YouTube%20Uploader.dzbundle and try uploading your 500MB+ file again? Let me know how you get on!