dropbox / dbxcli

A command line client for Dropbox built using the Go SDK
Other
1.05k stars 101 forks source link

API related error while attempting to upload a large file #114

Closed MahmoudDolah closed 5 years ago

MahmoudDolah commented 5 years ago

While attempting to upload this large file, I ran into the following error It seems to be related to this, perhaps? https://github.com/ncw/rclone/issues/2829

Full output below:

mahmouddolah@DTSN-05571-sdadmins-MacBook-Pro:/Volumes/DATA » dbxcli put --verbose jackrogers_prod_media_archive-2019-01-25.tar.gz Jack\ Rogers/Offboarding
2019/01/26 13:41:21 sdk.go:94: arg: &{false}
2019/01/26 13:41:21 sdk.go:94: req: &{POST https://content.dropboxapi.com/2/files/upload_session/start HTTP/1.1 1 1 map[Content-Type:[application/octet-stream] Dropbox-Api-Arg:[{"close":false}]] {0xc00000a940} <nil> 0 [] false content.dropboxapi.com map[] map[] <nil> map[]   <nil> <nil> <nil> <nil>}
2019/01/26 13:41:26 sdk.go:94: resp: &{200 OK 200 HTTP/1.1 1 1 map[X-Server-Response-Time:[1674] X-Dropbox-Request-Id:[ed1fe7888a491f735147f1b23287dadc] X-Robots-Tag:[noindex, nofollow, noimageindex] Connection:[keep-alive] Vary:[Accept-Encoding] Pragma:[no-cache] Cache-Control:[no-cache] Server:[nginx] Date:[Sat, 26 Jan 2019 18:41:26 GMT] Content-Type:[application/json]] 0xc000544080 -1 [chunked] false true map[] 0xc0000f0e00 0xc00036c370}
2019/01/26 13:41:26 sdk.go:94: body: {"session_id": "AAAAAAAAFNN06jYQREY29w"}
2019/01/26 13:41:26 sdk.go:94: arg: &{0xc0005442a0 false}
2019/01/26 13:41:26 sdk.go:94: req: &{POST https://content.dropboxapi.com/2/files/upload_session/append HTTP/1.1 1 1 map[Content-Type:[application/octet-stream] Dropbox-Api-Arg:[{"cursor":{"session_id":"AAAAAAAAFNN06jYQREY29w","offset":16777216},"close":false}]] {0xc0005442c0} <nil> 0 [] false content.dropboxapi.com map[] map[] <nil> map[]   <nil> <nil> <nil> <nil>}
2019/01/26 13:41:28 sdk.go:94: resp: &{400 Bad Request 400 HTTP/1.1 1 1 map[Date:[Sat, 26 Jan 2019 18:41:28 GMT] Content-Type:[text/plain; charset=utf-8] Connection:[keep-alive] Content-Security-Policy:[sandbox allow-forms allow-scripts] X-Dropbox-Request-Id:[718b13a3b8b80ca9b44ce30f0a846f64] X-Robots-Tag:[noindex, nofollow, noimageindex] Server:[nginx]] 0xc00053e060 -1 [chunked] false false map[] 0xc000476300 0xc00036c370}
2019/01/26 13:41:28 sdk.go:94: body: Error in call to API function "files/upload_session/append": HTTP header "Dropbox-API-Arg": unknown field 'cursor'
Error: Error in call to API function "files/upload_session/append": HTTP header "Dropbox-API-Arg": unknown field 'cursor'
Still34 commented 5 years ago

Can someone please look into this? It's been several weeks since it broke.

diwakergupta commented 5 years ago

I'm building a new release which should fix this issue. Thanks for your patience.

MahmoudDolah commented 5 years ago

@diwakergupta just to confirm you're referring to this release, right? https://github.com/dropbox/dbxcli/releases/tag/v3.0.0

diwakergupta commented 5 years ago

Yes.

On Wed, Jan 30, 2019 at 12:17 PM Mahmoud Dolah notifications@github.com wrote:

@diwakergupta https://github.com/diwakergupta just to confirm you're referring to this release, right? https://github.com/dropbox/dbxcli/releases/tag/v3.0.0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dropbox/dbxcli/issues/114#issuecomment-459092918, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA-dpMA47byFbwwUzd09eYqwCkPOeYCks5vIf3QgaJpZM4aUUzG .

MahmoudDolah commented 5 years ago

Much obliged!

On Wed, Jan 30, 2019, 3:55 PM Diwaker Gupta <notifications@github.com wrote:

Yes.

On Wed, Jan 30, 2019 at 12:17 PM Mahmoud Dolah notifications@github.com wrote:

@diwakergupta https://github.com/diwakergupta just to confirm you're referring to this release, right? https://github.com/dropbox/dbxcli/releases/tag/v3.0.0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dropbox/dbxcli/issues/114#issuecomment-459092918, or mute the thread < https://github.com/notifications/unsubscribe-auth/AAA-dpMA47byFbwwUzd09eYqwCkPOeYCks5vIf3QgaJpZM4aUUzG

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dropbox/dbxcli/issues/114#issuecomment-459105298, or mute the thread https://github.com/notifications/unsubscribe-auth/AQNTYd3d_vO9MVoNXU4UqggphLrv25gxks5vIgbFgaJpZM4aUUzG .