Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error An error occurred while retrieving token: AADSTS90023: Invalid STS request #117

Open
jpzapata99 opened this issue Aug 8, 2019 · 2 comments
Labels

Comments

@jpzapata99
Copy link

Hi, I am new with this library and when I tried use it, it give me this error.
An error occurred while retrieving token: AADSTS90023: Invalid STS request.
An error occurred while retrieving auth cookies
File ".\LeyendoExcel.py", line 16, in
ctx.execute_query()
return 'FedAuth=' + self.FedAuth + '; rtFa=' + self.rtFa
TypeError: can only concatenate str (not "NoneType") to str
Can any help me?

@milesfrankland
Copy link

milesfrankland commented Aug 30, 2019

I have had this problem. I found that having a symbol in the URL was my cause.
URL's need to be encoded I think.
I had a '&' in my URL, changin it to '%26' did the job.
Try this: https://www.urlencoder.io/

@milesfrankland
Copy link

milesfrankland commented Aug 30, 2019

If you want to encode it in python, you can also push the url through the parse.quote function of urllib.

>>> import urllib.parse
>>> urllib.parse.quote("https://www.google.co.uk/test&page/", safe=':/')
'https://www.google.co.uk/test%26page/'

@vgrem vgrem added the bug label Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants