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

Successful placeOrder call returns no content causing response's json method to fail. #96

Open
ChocoShell opened this issue Jun 13, 2020 · 0 comments
Labels
backlog Issues that haven't been categorized or are not yet ready for work bug Concrete, reproducible bugs

Comments

@ChocoShell
Copy link
Contributor

Hi,

I'm trying to use the TDClient.placeOrder function.

I had to add {"Content-Type": "application/json"} to the headers, so that it would accept my json.

When I got placeOrder working, I recieved this error:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

It seems that the Place Order API doesn't return anything. When I printed the response.content, I got b''

The order went through fine but the code failed because of the .json() call at the end of placeOrder.

@timkpaine timkpaine added backlog Issues that haven't been categorized or are not yet ready for work bug Concrete, reproducible bugs labels Jun 15, 2020
@wilfredcho wilfredcho mentioned this issue Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issues that haven't been categorized or are not yet ready for work bug Concrete, reproducible bugs
Projects
None yet
Development

No branches or pull requests

2 participants