cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dropbox media can't be access by azure blob

Dropbox media can't be access by azure blob

hardik-sanghavi-TOT
Explorer | Level 3

Hi All,

 

I have implemented the copy of the dropbox media to azure blob storage via URL.  Some days ago it was working properly, but right now I am getting the 500 error code. So do we need to change anything in that URL? Or did dropbox change any security for that? Can you please help me to solve this issue?

 

This is the issue link that I submitted into the stack overflow: https://stackoverflow.com/questions/70969587/getting-error-when-dropbox-url-copy-to-azure-blob-stora...

 

Thanks

10 Replies 10

Greg-DB
Dropbox Staff

Can you clarify where exactly you're seeing the 500 error? Is that coming from the Dropbox servers, or some other part of the process? It would be helpful if you can show the error/output in context. Thanks!

hardik-sanghavi-TOT
Explorer | Level 3

It's not particularly from dropbox. but It was working some months ago and now not getting the proper bytes. So Can you just let me know that dropbox changed any URLs or any security for third-party APIS?

Greg-DB
Dropbox Staff

Thanks, in that case if the 500 isn't coming from Dropbox itself, this may be because we recently updated the server back-end for these links to use "Transfer-Encoding: chunked" (and accordingly not return the "Content-Length" response header) on HTTP/1.1. HTTP clients should automatically handle this, but it's possible yours doesn't.

 

Are you able to retrieve any specific error message or output from your HTTP client? That would help confirm that.

 

If that's the issue, you should update your client/code to support "Transfer-Encoding: chunked" and not assume the "Content-Length" response header will be present. Or, switch to HTTP/2, where the "Content-Length" response header should be present.

hardik-sanghavi-TOT
Explorer | Level 3

Hi Greg,

 

Thanks for this information. I think the issue related to the Transfer-Encoding: chunked. Can we have any other URL which is working as past? So we can use that URL to download the full video. Also, let me know if you have any other ways.

 

Thanks.

Greg-DB
Dropbox Staff

There isn't another link type that I can refer you to that won't necessarily use this transfer encoding. "Transfer-Encoding: chunked" is part of the HTTP spec so I can't guarantee it won't be used for any particular URL. You should update your client to support this, and/or HTTP/2.

Greg-DB
Dropbox Staff

Update: in order to temporarily accommodate clients that don’t properly support automatically handling “Transfer-Encoding: chunked”, we’re temporarily rolling back this change, so that these links will no longer use “Transfer-Encoding: chunked” and will instead return “Content-Length” on HTTP/1.1. We will begin rolling that out starting around 2/17. That will be in place until around 3/1. At that point, we will begin using “Transfer-Encoding: chunked” and no longer returning “Content-Length” on HTTP/1.1 again.


Going forward, please ensure that your clients are able to automatically handle both chunked encoding and non-chunked encoding automatically.

hardik-sanghavi-TOT
Explorer | Level 3

@Greg-DB  - Thanks for Inform. I have a question when I start to download the media by ourselves to prevent this problem in the future.

 

Currently, we get the X-Dropbox-Content-Length in the header of the Head methods. So can you just inform us that header will be as it is in the future or it will be changed? If we get this type of header then we can download media in chunks with that length. Let me know if you want something from my side.

Greg-DB
Dropbox Staff

The "X-Dropbox-Content-Length" header is not part of the HTTP spec and is not officially documented by Dropbox, so we can't recommend assuming that will always be present. I'm sending this along as a request to offer a guarantee on that, but I can't promise if that will be done.

hardik-sanghavi-TOT
Explorer | Level 3

Got it. If possible if dropbox sends any header related to content length for the Head request then it will be good for all developers who try to download the dropbox media in chunks.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    hardik-sanghavi-TOT Explorer | Level 3
What do Dropbox user levels mean?