cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

usersGetCurrentAccount doesn't work in MS Edge

usersGetCurrentAccount doesn't work in MS Edge

automol
Explorer | Level 3

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);
	});
1 Reply 1

Re: usersGetCurrentAccount doesn't work in MS Edge

Greg-DB
Dropboxer
Thanks for the report! We'll look into it.
Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?