Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

dcam's avatar
dcam
Explorer | Level 4
7 months ago

http/1.1 409 conflict

I have a read-only app folder hosting our software licenses. The access token was a permanent access token. It had been working for years until recently. The query responds with the Http code 409 conflict. 

The only thing I did several days ago was turning on the two-step authentication. Thinking that may cause the error, I turned that off. However, the query still generate the code 409.  Any ideas?

Thanks!

Yi

 

 

3 Replies

  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 months ago

    Hi dcam​,

    Could you please share the error message that accompanies the 409 code?

  • dcam's avatar
    dcam
    Explorer | Level 4
    7 months ago
    //  Connect to Dropbox
    bool success = rest.Connect("content.dropboxapi.com", 443, true, true);
     
    // Add request headers.
    rest.AddHeader("Authorization", "Bearer Token");
     
    //  The download "parameters" are contained in JSON passed in an HTTP request header.
    //  This is the JSON indicating the file to be downloaded:
    //  {
    //     "path": "/jack.txt",
    //  }
     
    QJsonObject json;
     
    // add path to header
    const QString strPath = QStringLiteral("/") + strLicenseFile;
    json.insert(QStringLiteral("path"), strPath);
     
    QJsonDocument jsonDoc(json);
    rest.AddHeader("Dropbox-API-Arg", jsonDoc.toJson(QJsonDocument::Compact).constData());
     
    // The content of the file on Dropbox is returned.
    const char* szContent = rest.fullRequestNoBody("POST", "/2/files/download");
    if (rest.get_ResponseStatusCode() != 200) {
    }
     
    Yi
  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 months ago

    Hi dcam​,

    Could you provide a little more information? Such as:

    - the name and version number of the platform and 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

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

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, Facebook or Instagram.

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!