← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

UploadFile silently fails when Sandbox = False and your API key requires it #75

Open

Description

@Plasma

Hi,

There were previous issues regarding this problem: Issue #23, #19, #10.

If you attempt to call client.UploadFile() without client.UseSandbox = true (and your API key is in sandbox/isolated mode and not full Dropbox access mode), the API call silently fails and returns an incomplete Metadata object.

The JSON response returned from the API call is swallowed silently instead of throwing an exception:

{"error": "Full Dropbox access attempt failed because this app is not configured to have full Dropbox access.  Should your access type be app folder ('sandbox') instead?"}

Regards,
Andrew

Activity

  1. Ayyappa-amara commented on Aug 2, 2013

    @Ayyappa-amara

    i am also facing same problem..
    Please help me.

  2. MarkMichaelis commented on Oct 12, 2013

    @MarkMichaelis

    The same thing occurs for me.

    Mark

  3. e-tobi commented on Sep 22, 2014

    @e-tobi

    Same happens when trying to upload with a not-authenticated client:

    {"error": "Authentication failed"}

    No exception, UploadFile() just returns an empty MetaData object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions