One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
automol
7 years agoExplorer | Level 3
usersGetCurrentAccount doesn't work in MS Edge
usersGetCurrentAccount doesn't work in MS Edge. I get this error:
Error in call to API function "users/get_current_account": Bad HTTP "Content-Type" header: "text/plain;charset=UTF-8". Expecting one of "application/json", "application/json; charset=utf-8", "text/plain; charset=dropbox-cors-hack".
This doesn't happen in Firefox and Chrome. Seems like Edge adds "content-type: text/plain; charset=UTF-8" request header. My code:
var dbx_options = { clientId: "", accessToken: "" }; var dbxClient = new Dropbox.Dropbox(dbx_options); dbxClient.usersGetCurrentAccount() .catch(function(err) { console.error(err); }) .then(function (acc) { console.log(acc); });
- Greg-DB
Dropbox Staff
Thanks for the report! We'll look into it.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 2 days ago
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 or Facebook.
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!