Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
TheKrominator
6 years agoExplorer | Level 3
Dropbox oath2/token returns undefined
When I send my auth code it returns 'undefined'. I don't even get an error message. I can set this up in Postman and get a response.
axios({ method : 'post', url : 'https://api.dropboxap...
- 6 years ago
I just gave this a try and it looks like the Dropbox API itself is working properly.
I can't officially provide support for axios, but it looks like the issue is the callback function definition you're using. The axios client apparently just returns a single result variable, not a pair of `req, res` like you're trying to use. (And so, `res` isn't defined.)
So, you'll probably want to do something like this instead:
.then(function(res) { console.log(res.data) // ...whatever you need to do with that here })
Greg-DB
Dropbox Community Moderator
6 years agoI just gave this a try and it looks like the Dropbox API itself is working properly.
I can't officially provide support for axios, but it looks like the issue is the callback function definition you're using. The axios client apparently just returns a single result variable, not a pair of `req, res` like you're trying to use. (And so, `res` isn't defined.)
So, you'll probably want to do something like this instead:
.then(function(res) {
console.log(res.data)
// ...whatever you need to do with that here
})- TheKrominator6 years agoExplorer | Level 3
That was it! I was reading the wrong response from the server.
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!