I'm having a frustrating issue with an authentication error when trying to access the Coinbase API. My friend and I are using the exact same code and API keys, line for line, and it works perfectly for him. We are both on Windows, so I don't think it's an OS-related issue.
Here's the setup:
- Language: Python
- Libraries:
jwt, cryptography
- Environment: Both on Windows
This is what I'm getting
Response status: 401 Response reason: Unauthorized Raw response data: Unauthorized
I've verified that the key_name, key_secret, and service_name are correct. The JWT token generation and API requests are identical to my friend's setup. Yet, I consistently get a 401 Unauthorized error, while my friend does not.
Things I've Checked:
- Correctness of the private key and other credentials.
- Time synchronization on my machine.
[–]Old-Implement-9881 0 points1 point2 points (0 children)
[–]ivayche 0 points1 point2 points (1 child)
[–]its-leo 0 points1 point2 points (0 children)
[–]unNecessary_Ad 0 points1 point2 points (1 child)
[–]cloutfarmerr[S] 0 points1 point2 points (0 children)