We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
jenseno
9 years agoExplorer | Level 4
"No auth function available for given request" return on /token request
Hi. I send the following form data with the code I got from the authorization page. I use redirect_uri back to my app through localhost. However I get the following response (error code 400): "No...
Greg-DB
Dropbox Community Moderator
9 years agoI don't see anything clearly wrong with your request. To help troubleshoot this, can you share the full/raw request and response? (Just be sure to redact your app secret.)
Also, this blog post may be helpful:
https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/
Also, this blog post may be helpful:
https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/
jenseno
9 years agoExplorer | Level 4
Thanks. The raw request (from Fiddler) is as follows:
POST https://api.dropboxapi.com/oauth2/token HTTP/1.1
Host: api.dropboxapi.com
User-Agent: UnityPlayer/5.6.0f3 (UnityWebRequest/1.0, libcurl/7.51.0-DEV)
Accept: */*
Accept-Encoding: identity
X-Unity-Version: 5.6.0f3
Content-Length: 177
code=KNJIALLS_WCAAAAAAABS-QAPRCDPDJ7TLVWLT2JGUFU&grant_type=authorization_code&client_id=<censored>&client_secret=<censored>&redirect_uri=http%3A%2F%2F127.0.0.1%3A6756
- Greg-DB9 years ago
Dropbox Community Moderator
I suspect the issue is that you're missing the "Content-Type" header. It should be "Content-Type: application/x-www-form-urlencoded". Try that and let me know if it doesn't help.
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!