Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Lukag
2 years agoCollaborator | Level 8
Access dropbox file - Authentication failed because the remote party has closed the transport stream
i'm new in this type of access. I wrote this code but i have the error in objet to recover the list of files in dropbox. Dim token As String token = "sl.B6........." Dim _command As String _co...
Здравко
2 years agoLegendary | Level 20
Yes, of course. it's case sensitive! Also, make sure the path is valid... you may start with just empty string - it's always valid.
Lukag
2 years agoCollaborator | Level 8
Perfect, it looks right.
Just a question : i had my token , generate 1 or 2 days ago and that didn't work.
If i go in App console i didn't see it and o i generate again.
How is valid a token ?
should i generate a new one every time i use my web app ?
- Здравко2 years agoLegendary | Level 20
Lukag wrote:...
How is valid a token ?
should i generate a new one every time i use my web app ?
Access token is short lived, so you may use it for limited time - typically 4 hours or so. If you plan to rely on access token only then, Yes, you will need new every time you are using your application. There is alternative though. 😉 Take a look here for a possible way.
Hope this helps.
- Greg-DB2 years ago
Dropbox Community Moderator
Lukag For more information, refer to the following resources:
- Lukag2 years agoCollaborator | Level 8
I try to read guide and to write code to obtain by code a new token.
this is the command
is that the right way ? becouse i have error 404 server not found
- Здравко2 years agoLegendary | Level 20
Lukag wrote:...
this is the command
...
Hm..🤔 What I wrote there is:
@Здравко wrote:..., open a new browser window and put into address line following:
https://www.dropbox.com/oauth2/authorize?token_access_type=offline&response_type=code&client_id=<App key>
...
Does this sound like a command? 🧐
@Lukag The described there are all steps that you need to take for simplest OAuth flow. There are other options though, but most probably you don't need them, since you want long term access to a fixed account - the yours (correct me if I'm wrong).
The only thing you need to include in your code is the last step there (the one that needs to be repeated every time your access token expires and you need new one). That step is command. The previous steps are executed one time only and most probably you don't need them encoded. You may follow them as described there if only single (your) account needs to be linked. Just take from result the refresh token and also save in your code application key (client id) and application secret (client secret). 😉 That's all. If you're still not sure, the above is NOT command, it's web address that needs to be open in web browser (so the OAuth flow starts)!!!
Hope this sheds a piece of light.
PS: Keep in mind that none of credentials need to be exposed to the client web session (that would be security hole)! If you want let client side access, it's better PKCE code flow to get in use and in such a case all steps need to be encoded (so client will be able start OAuth flow and link corresponding account accordingly, not only you). In all cases you will need to avoid exposure of credentials that have nothing to do with particular web session.
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!