Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Ivan_Gusev's avatar
Ivan_Gusev
Explorer | Level 3
7 years ago

invalid_access_token

Hello,

We develop the tool which has an option to upload files to Dropbox. For the correct work with Dropbox, we use Dropbox.Api for .NET Framework version 4.7.0. One of our clients gets the following error message:

Dropbox.Api.AuthException: invalid_access_token/.
at Dropbox.Api.DropboxRequestHandler.<RequestJsonString>d__2f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Dropbox.Api.DropboxRequestHandler.<RequestJsonStringWithRetry>d__1a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Dropbox.Api.DropboxRequestHandler.<Dropbox.Api.Stone.ITransport.SendRpcRequestAsync>d__5`3.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at SqlBak.Destination.Dropbox.Impl.DropboxConnection.DoOpenConnection()
---> (Inner Exception #0) Dropbox.Api.AuthException: invalid_access_token/.
at Dropbox.Api.DropboxRequestHandler.<RequestJsonString>d__2f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Dropbox.Api.DropboxRequestHandler.<RequestJsonStringWithRetry>d__1a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Dropbox.Api.DropboxRequestHandler.<Dropbox.Api.Stone.ITransport.SendRpcRequestAsync>d__5`3.MoveNext(); Request Id: 46213a402ce103c26a5a632bb88d9e04<---

The reauthorization to Dropbox doesn't help.

We have many clients and they send files to their Dropbox accounts without any issues. Could you please check the Request Id what is going on with this token?

Request id: 

46213a402ce103c26a5a632bb88d9e04

If you need additional information, please let us know.

1 Reply

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

    I'm afraid I can't offer more information than what's documented for that error in this case. An 'invalid_access_token' error means that the access token used to make the API call isn't valid, e.g., it wasn't a valid access token, was revoked by the app or user, the app folder (if using that permission) was deleted, or the user account was deleted, etc.

    Having the user re-authorize the app if they want to keep using it is the right solution. That would give a new access token to the app. Can you double check that the app is using the new access token, and isn't accidentally holding on to the old one, and isn't somehow changing the access token itself?

    If that doesn't seem to be the problem, please open a ticket with the relevant app name, account ID, and steps to reproduce the problem so we can look into it: 

    https://www.dropbox.com/developers/contact

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!