coinbasepro-python icon indicating copy to clipboard operation
coinbasepro-python copied to clipboard

Authenticated Client Not Retrieving Messages

Open Weezy11 opened this issue 7 years ago • 6 comments

Hello,

When I attempt to connect an authenticated client, none of the authenticated methods seem to be working. All of them are raising the below raw_decode error, which I believe is saying no messages are returning from the initial request. However, all public client methods are working. I've looked along the thread and seen that this was a similar problem in Issue #86. I've attempted with multiple API keys, on both the sandbox and normal coinbase pro. Could you help direct me to a solution?

Code: #Create Authenticated Client for sandbox auth_client = cbpro.AuthenticatedClient(api_key, api_secret, pass_phrase, api_url) try: auth_client.get_time() except: auth_client.get_time()


Error: line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None

Weezy11 avatar Dec 24 '18 22:12 Weezy11

Have you given the correct permissions to your api key?

noah222 avatar Dec 25 '18 00:12 noah222

Yes, I have both view and trade permissions, no transfer permission though.

Weezy11 avatar Dec 25 '18 00:12 Weezy11

Does it create the exact same error without a URL parameter? What do you get with something like: x = auth_client.get_time() print(x)

noah222 avatar Dec 25 '18 00:12 noah222

Thanks, that seemed to fix the issue for connecting to regular coinbase pro, however, do you know how I could connect to the sandbox?

Weezy11 avatar Dec 25 '18 01:12 Weezy11

Did you create a unique api key for the sandbox first? Just checking the basics. But I've also heard the sandbox support can be unreliable and I have not personally used it in a while.

noah222 avatar Dec 25 '18 03:12 noah222

I did create a unique api key for the sandbox, but what you say makes sense.

Weezy11 avatar Dec 28 '18 21:12 Weezy11