Failed Auth against MS Cosmos rest API when + in auth header #3225
Replies: 1 comment
-
Not unsurprisingly, it needed to be quoted. The code I was adopting from did the quoting far away from the signature making function. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure how to troubleshoot this any further so I'm not asserting for sure there's an issue with httpx but I don't know what else to look at.
I'm trying to authenticate according to this
It occasionally responds with a 401 Unauthorized. It seems that when the authentication key in the header has a + in it that it will fail.
Here are my functions and Auth Class
and I have this Auth Class that I use with AsyncClient
I can work around this by checking if the + exists in
secret
and then decrementing a second from the time and regenerating until I get one that doesn't have a+
but that's very hacky. It also opens me up to the server saying my chosen date is is too far behind the server time.Beta Was this translation helpful? Give feedback.
All reactions