cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

Re: Getting error using dropbox apis with "Dropbox-Api-Path-Root" header

Getting error using dropbox apis with "Dropbox-Api-Path-Root" header

akagupta1
Explorer | Level 3

Hi

I am getting following error while calling dropbox v2 APIs with "Dropbox-Api-Path-Root " header {“.tag”: “namespace_id”, “namespace_id”: “2132332"}

"Failed to execute 'setRequestHeader' on 'XMLHttpRequest': Value is not a valid ByteString."

Earlier it was working fine. Is there any recent change done due to which it is broken or do i have to specify this header in some other way?

2 Replies 2

Greg-DB
Dropbox Staff

That's not an error message from Dropbox itself. It looks like it's coming from whatever HTTPS client you're using.

It seems to be indicating that you're attempting to use a value not allowed in HTTP headers. Looking at the string you provided, it's probably because you're using the non-ASCII characters “ and ”. Try using just " instead.

akagupta1
Explorer | Level 3

Thanks Greg. Yes exactly its due to ”. Its working now.

Need more support?