Forum Discussion
Tomasz Luchowski
Mar 20, 2018Copper Contributor
401 error when sending French or Polish characters to Data Collector API
Hello,
We have a solution that sends custom data to Log Analytics via the Data Collector API.
The challenge is that the moment we try to send data that contains a national character like ...
GertB1989
Dec 05, 2019Copper Contributor
I have the exact same problem.
Espana -> added to logs just fine
España -> doesn't work
Response:
HTTP/1.1 403 Forbidden
...
{"Error":"InvalidAuthorization","Message":"An invalid signature was specified in the Authorization header"}
Default application/json encoding is UTF-8 so I expect this to work.
Specifying the content-type of the request as Content-Type: application/json; charset=utf-8, instead of just application/json does not fix the issue either (to be clear: it should not, since it should work already!).
Any solution to this would be greatly appreciated.
Kind regards,
Gert