Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Error Invalid return character or leading space in header:Authorization #33

Closed
mmigala opened this issue Oct 16, 2019 · 3 comments
Closed

Comments

@mmigala
Copy link

mmigala commented Oct 16, 2019

Hello,

I'm getting the error provided in the screen when running the script.

image

Regards

@andyt530
Copy link
Owner

pip install requests

and try again.

@mmigala
Copy link
Author

mmigala commented Oct 17, 2019

I'm not sure why but at the end of bearer token '\r' was added.

I removed it with:
headers = {'Authorization': 'Bearer ' + bt.replace('\r',''), 'Content-Type': 'application/json'}

and script started working

@andyt530
Copy link
Owner

Thanks - coded that in now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants