We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

Naga Abhinaya T's avatar
Naga Abhinaya T
Explorer | Level 4
8 years ago
Solved

Error Summaries

Hi,

 

Is there any documentation available, for list of error codes and the sample error responses? This will be helpful to handle errors and Exception. Thanks in advance

  • Greg-DB's avatar
    Greg-DB
    8 years ago

    The documentation does cover each error message, but note that errors are nested, so you need to click through to expand the ones you want to read about.

     

    For example, to see the `malformed_path` error (and others) for /2/files/get_metadata, click on the `LookupError` type listed for the `path` error in the "ERRORS" section.

6 Replies

  • Naga Abhinaya T's avatar
    Naga Abhinaya T
    Explorer | Level 4
    8 years ago

    Hi Greg,

     

    That was useful. However I am using REST APIs only to access Dropbox data of the authenticated users. I need sample error responses like

     

    {  

       "error_summary":"path/malformed_path/",

       "error":{  

          "reason":{  

             ".tag":"malformed_path"

          },

          "upload_session_id":"",

          ".tag":"path"

       }

    }

     

    This is one possible error response and there are many such error responses that can happen. Is there a complete docuemntation of possible errors and their error response?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    The documentation covers every possible error, but it doesn't include full sample JSON for each one. I'll be sure to pass this along as feedback.
  • Naga Abhinaya T's avatar
    Naga Abhinaya T
    Explorer | Level 4
    8 years ago

    Greg,

     

    The documentation covers every possible error codes and not errors. I could not find the "malformed_path" error in any of the documentations. Is there any documentation listing the possible errors and their error_messages. If possible, can you add these details to the documentation?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago

    The documentation does cover each error message, but note that errors are nested, so you need to click through to expand the ones you want to read about.

     

    For example, to see the `malformed_path` error (and others) for /2/files/get_metadata, click on the `LookupError` type listed for the `path` error in the "ERRORS" section.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 3 hours ago
410 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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!