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

401 Unauthorised #2

Open
yingale opened this issue Mar 24, 2022 · 2 comments
Open

401 Unauthorised #2

yingale opened this issue Mar 24, 2022 · 2 comments

Comments

@yingale
Copy link

yingale commented Mar 24, 2022

Code is giving "401" (Unauthorised) with my credentials. though it's working in postman.

@martymcflyDMC
Copy link

@yingale Make sure you Encode the RawQuery in your request. I was having a similar issue. The query parameters were encoded, but they were not encoded in the request. So the signature did not match what the server received.

req.URL.RawQuery = req.URL.Query().Encode()

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

No branches or pull requests

3 participants
@yingale @martymcflyDMC and others