We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

grp3's avatar
grp3
Explorer | Level 4
3 years ago

Functionality changes

Hi!

I play some audio files from dropbox all was great but yesterday something went wrong. I use 

get_temporary_link

to get link of the file.

When I play .ogg file via temporary link in my player (on android) and seek to some position player starts to play from beginning.

I suppose that there was some changes on Dropbox, maybe some headers changed.

When I download this file and play locally everything is fine. I also tried to load such ogg file to github and it works fine.
Please tell me what could happen since yesterday and how to fix it.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Are you able to retrieve any specific error message or output?

     

    We did recently update these links to use "Transfer-Encoding: chunked" (and accordingly not return the "Content-Length" header) on HTTP/1.1, but HTTP clients should automatically handle this. It's possible yours doesn't, however.

     

    Also, that change was rolled out earlier than you're describing. When was the last time specifically that you saw this working?

    • grp3's avatar
      grp3
      Explorer | Level 4

      Thank you for reply!

      Users started to report issue the 3rd February in the evening.

       

      I checked Content-Length in Postman and it was there. These headers I got from Postman:

       

       

      accept-encoding: identity,gzip
      accept-ranges: bytes
      cache-control: max-age=60
      content-disposition: attachment; filename="2.ogg"; filename*=UTF-8''2.ogg
      content-length: 3018658
      content-security-policy: sandbox
      content-type: audio/ogg
      date: Fri, 04 Feb 2022 20:04:06 GMT
      etag: 1642877210753874d
      pragma: public
      referrer-policy: no-referrer
      server: envoy
      strict-transport-security: max-age=31536000; includeSubDomains; preload
      vary: Origin
      x-content-security-policy: sandbox
      x-content-type-options: nosniff
      x-dropbox-request-id: b6165d08b11c4e86ab427e2ef3f9151a
      x-dropbox-response-origin: far_remote
      x-robots-tag: noindex, nofollow, noimageindex, noindex, nofollow, noimageindex
      x-server-response-time: 16
      x-webkit-csp: sandbox

       

       

      I noticed that .ogg audio did not preload.

      Except .ogg files I also have .m4a as duplicates. It is strange, but I switched to .m4a and it works. I compared headers of .ogg and .m4a and they were identical.

      Now my app seems to work fine, but I am not sure the same won't happen with .m4a.

      Do you know why .m4a works, but .ogg does not?

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        I'm not aware of any reason off hand that .m4a should works but .ogg wouldn't. Note that using Postman may not be representative of your actual video player client on Android though, as they may use different HTTP versions or features. Are you able to get any logging output for the actual client on Android?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 3 hours ago
325 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!