Invalid API Key for binance.us account

Hello,
I have a binance .us account, and all the authenticated requests (even just GET requests) are failing with the error : “-2008 Invalid Api-Key ID”. Here is what I tried:

If I use keys generated from a binance .com account, it works, but I really need to use the ones from binance .us.

thanks for any help.

Hello, binance.us account’s API Keys needs to be used with base url https://api.binance.us.
Can you create a new API Key and retry again?

https://github.com/binance-us/binance-official-api-docs/blob/master/rest-api.md

I tried that, but even with api.binance.us as base url, and re-generating the API keys it didn’t work.

I don’t know what else to try.

I found the solution.
It’s pretty crazy: https://stackoverflow.com/questions/67890000/binance-future-api-invalid-api-key-ip-or-permissions-for-action