-
Firstly an apology: I'm new to Python so could be making a very silyl mistake here! This code works as expected (I get a 401 Unauthorized response as I haven't sent the required authentication via headers)
If I change
to (adding the headers to the ClientSession object)
The script doesn't work, I get the following error
Google isn't helping me solve this - can anyone here help please? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
SOLVED! In case anyone else comes across this I solved it by running the script in Python directly, which showed the true underlying error:
The solution was to cast the variables I was using in the headers to strings. |
Beta Was this translation helpful? Give feedback.
-
Good detective work. Unfortunately the error reporting in |
Beta Was this translation helpful? Give feedback.
SOLVED!
In case anyone else comes across this I solved it by running the script in Python directly, which showed the true underlying error: