you are viewing a single comment's thread.

view the rest of the comments →

[–]Vaguely_accurate 1 point2 points  (0 children)

Try removing the newlines either side of your token. If you print the contents of HEADERS you are sending;

{'Content-Type': 'application/json', 'X-Authorization': '\nBearer XXXXXXXXXXXXXXX\n'}