Take Your Search Game to the Next Level with Dropbox Dash  🚀✨ Curious how it works? Ask us here! 

Forum Discussion

martinkleinaustria's avatar
martinkleinaustria
Explorer | Level 4
5 years ago
Solved

Uncaught TypeError: Dropbox.Dropbox is not a constructor

I have a Javascript Program that works since years. Today Suddenly I get the error "Uncaught TypeError: Dropbox.Dropbox is not a constructor" in the Javascript Console and no Data is loaded from my Dropbox.

I use this dropbox sdk:

https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js

Can someone please help ?

With kind regards.

Martin Klein

  • Thanks for reporting this issue. This issue is now fixed with the latest release and should be working properly again.

     

    Apologies for any inconvenience this may have caused, and thanks again for bringing this to our attention.

9 Replies

  • This is the Line that gives the error:

     

    var dbxt = new Dropbox.Dropbox({ fetch:fetch, accessToken: xxxxxxxxxxxxxxxxxxxx" });

    Where xxxxxxxxxxxxxxx is here a replacement of my real Authentification.

    Regards Martin

    • martinkleinaustria's avatar
      martinkleinaustria
      Explorer | Level 4

      Thanks, do you want me to open an issue in Github for Version 5.0.0 ?

      Because I checked with Version 4.0.30 and there it still works perfectly.

      Regards Martin

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

        Thanks, but there's no need to open this as an issue on GitHub as well. We're aware of the issue and are working on resolving it. I'll follow up here once I have an update on this.

    • sareuon's avatar
      sareuon
      Explorer | Level 3

      We experienced the same error yesterday, and the time of the failure coincides exactly with the release of to the v5.0.0 tag.  This broke the integration for our entire customer base. We've now rolled back to v4.3.0 as an interim measure.

       

      If breaking changes are introduced, where does Dropbox announce upcoming breaking changes? I can find nothing in the developer blog.

      • martinkleinaustria's avatar
        martinkleinaustria
        Explorer | Level 4

        The Problem has been fixed yesterday evening (Vienna Time). It works for me again.

        You can use the newest version again. It is now 5.1.0

        Regards

        Martin

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers810 PostsLatest Activity: 13 days ago
248 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!