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
_command = "https://api.dropboxapi.com/2/files/list_folder"
Dim Request As HttpWebRequest
Request = HttpWebRequest.Create(_command)
Request.Method = "GET"
Request.KeepAlive = True
Request.ContentType = "application/json"
Request.UserAgent = "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36"
Request.AllowAutoRedirect = True
Request.Headers.Add("Authorization", "Bearer " & token)
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
Dim Response As HttpWebResponse = Request.GetResponse()
32 Replies
Replies have been turned off for this discussion
- Lukag2 years agoCollaborator | Level 8
- Здравко2 years agoLegendary | Level 20
Yes.
- Lukag2 years agoCollaborator | Level 8
ok .. i'm doing all steps
when i do
curl https://api.dropbox.com/oauth2/token -d code=<received code> -d grant_type=authorization_code -u <App key>:<App secret>
answer me that u is ambiguos
- Lukag2 years agoCollaborator | Level 8
chooses : -UseBasicParsing -Uri -UseDefaultCredentials -UserAgent
- Здравко2 years agoLegendary | Level 20
It is not mandatory you use curl command. You can use any other, but of course should adapt the params. Not all command have the same params set! My example (and not only) uses original curl command, not aliases that point to something else. Check what your alias points to. It looks like some shell' internal redirection that confuses you. Try another shell.
- Lukag2 years agoCollaborator | Level 8
i downloaded curl.
Now i have two token and the second one never expire. Right ? id' like use always it 🙂
- Здравко2 years agoLegendary | Level 20
refresh token doesn't expire. The tokens (and the JSON at all) are not ordered, so I don't know is it second one or not (better don't rely). Navigate on base of the field name.
- Lukag2 years agoCollaborator | Level 8
ty very very much.
- Lukag2 years agoCollaborator | Level 8
Good morning,
a clarification : the refresh token must be used just to obtain a new token or i can use it to obtain data ( like in /list_folder ) ?
- Здравко2 years agoLegendary | Level 20
Hm..🤔 Can you recall this? 🙋🤫 Oh.. that laziness... Is it so "impossible" not to jump the things over? 🧐🤣
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!