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

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

Getting not_allowed error when requesting temporary_link

Hi,

I am trying to fetch the temporary link of a file in my dropbox. I created a scoped app and the file is inside the application folder. 

 

I am able to list the files in the folder and sub folders but not able to get the temporary link

 

Please help

 

  • kashooo's avatar
    kashooo
    Explorer | Level 3

    It sounds like there was an issue with invalid HTML in your post. Here’s a clear, HTML-free response regarding the not_allowed error when requesting a temporary link from Dropbox:

    Troubleshooting not_allowed Error

    1. Check API Permissions:

      • Ensure your Dropbox app has the necessary permissions for generating temporary links. Typically, you'll need files.content.read permissions.
    2. Verify Access Token:

      • Confirm that your access token is valid and has the correct scopes. Tokens need appropriate permissions to perform actions like generating links.
    3. Review API Documentation:

      • Make sure you are using the correct Dropbox API endpoint and request format for generating temporary links. Refer to the official Dropbox API documentation to ensure compliance.
    4. Check Request Method:

      • Ensure you are using the proper HTTP method (POST) and that your request body is correctly formatted. Verify that the API endpoint supports the method and parameters you are using.
    5. Verify File/Folder Access:

      • Confirm that the file or folder you’re trying to access with the temporary link is available and that you have permissions to access it.
    6. Inspect Error Details:

      • Look for additional details in the error response that might explain why the request was not allowed.
    7. Update SDKs/Libraries:

      • If you are using Dropbox SDKs or libraries, ensure they are up to date. Sometimes, issues are resolved in newer versions.
    8. Test Independently:

      • Use tools like Postman or cURL to test the API endpoint directly and verify that the request is correctly formed.
    9. Consult Dropbox Support:

      • If none of the above steps resolve the issue, contact Dropbox support or visit their developer forums for additional assistance.

    By following these steps, you should be able to identify and resolve the issue causing the not_allowed error. If you need further help, Dropbox's support resources are a good place to get more detailed assistance.

    • paulgeorge's avatar
      paulgeorge
      Explorer | Level 3
      My account is not banned as I can still add/edit/delete files from my account. I am able to read the properties, add metadata to file and search metadata from file. But I am not able to create a temporary link.
      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        A link ban would not impact the ability to read/add/edit/delete/search files or metadata. It only affects an account's links. So, the ability to read/add/edit/delete/search files or metadata does not indicate whether or not your account's links are banned.