We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

akagupta1's avatar
akagupta1
Explorer | Level 3
6 years ago

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

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?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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's avatar
      akagupta1
      Explorer | Level 3

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