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

Error response on JSON-RPC request inside of batch should be inside of batch #2584

Closed
pibara-utopian opened this issue Jul 3, 2018 · 1 comment

Comments

@pibara-utopian
Copy link

Just now, the following "BATCH" JSON-RPC call to https://api.steemitstage.com/ :

[{"params": [], "jsonrpc": "2.0", "method": "condenser_api.get_dynamic_global_properties", "id": 1}]

Gave back an "OBJECT" response close to this:

{"jsonrpc": "2.0", "error": {"message": "Internal Error", "code": -32603, "data': {"error_id": "2fe7b4a6-5777-41be-81f7-eb07a6be0ee4", "request": {"jussi_request_id": None, "amzn_trace_id": "Root=1-5b3b099a-4708324101f7cf5a14b26f85"}}}}

A JSON-RPC response on batch should always be a batch itself, not an object, and an "id" should preferably be present in each of its batch entries. Something like:

[{"jsonrpc": "2.0", "error": {"message": "Internal Error", "code": -32603, "data': {"error_id": "2fe7b4a6-5777-41be-81f7-eb07a6be0ee4", "request": {"jussi_request_id": None, "amzn_trace_id": "Root=1-5b3b099a-4708324101f7cf5a14b26f85"}}} "id": 1}

@mvandeberg
Copy link
Contributor

This is not a steemd response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants