You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Ashley B.15's avatar
Ashley B.15
Helpful | Level 7
4 months ago

route_access_denied

Hi,

Would someone be able to help with the following error

401 route_access_denied.

 

I've encountered the above a couple of times now and would like some advice on best to handle it?

 

We use refresh tokens to obtain new access tokens, which appears to be working fine (did encounter and issue with tokens previously - tokens being truncated) but this has now been resolved.

 

We cache the tokens and obtain new tokens when they are due to expire.

 

What should we do when we encounter this error?

 

Thanks in advance

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi Ashley B.15,

    You're trying to access some endpoint that's not available or not accessible to you. Check what do you request to in your call and if needed dump your request to see what's there.

    Good luck.

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

    A 'route_access_denied' error should indicate that the call failed because the API route the app is trying to use is not publicly available.

     

    If it appears you're receiving this error incorrectly though, please reply with the following so we can look into it:

    • the name and version number of the SDK/library you are using, if any
    • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
    • the full text of any error or unexpected output
    • 5-10 sample 'X-Dropbox-Request-Id' response header values for the error responses
    • Ashley B.15's avatar
      Ashley B.15
      Helpful | Level 7
      • the name and version number of the SDK/library you are using, if any
        • OfficialDropboxDotNetSDKv2/6.37.0.0
      • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
        • the occurs when listing folders https://api.dropboxapi.com/2/files/list_folder
          POSTING: "recursive":false,"include_media_info":true,"include_deleted":false,"include_has_explicit_shared_members":true,"include_mounted_folders":false,"limit":1000,"include_non_downloadable_files":true
          I can't share the path itself, as its one of our customers. but occurs on a path 7 folders deep
      • the full text of any error or unexpected output
        Dropbox.Api.Auth.AuthError+RouteAccessDenied Dropbox.Api.AuthException route_access_denied/.
      • 5-10 sample 'X-Dropbox-Request-Id' response header values for the error responses
        • X-Dropbox-Request-Id: 9d4d355c9dbb48be8f4274150b9a1177
      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Ashley B.15 Thanks, that's helpful. The /2/files/list_folder endpoint should certainly be publicly available so we'll look into this and follow up here once we have an update on this.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,885 PostsLatest Activity: 5 years ago
326 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!

Related Content