Skip to content

Authenticated Client Will Sometimes Fail When Placing Order - JSON Error? #225

@ghost

Description

I cannot replicate this error but it happens randomly when I am connecting to api via authenticated client, perhaps a couple times a day. I have run this code on my local computer and on a remote server and so far it has only occurred on the remote server, don't know if that matters or not. Here is the relevant traceback, the first line being my sell order:

order = auth_client.sell(price=str(adjPrice), size = size, product_id=product + '-USD')

File "/usr/local/lib/python3.4/site-packages/gdax/authenticated_client.py", line 80, in sell
return r.json()
File "/usr/local/lib/python3.4/site-packages/requests/models.py", line 866, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib64/python3.4/json/init.py", line 318, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.4/json/decoder.py", line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.4/json/decoder.py", line 361, in raw_decode
raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions