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

fix: add error key for error responses #6

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

sdbondi
Copy link
Contributor

@sdbondi sdbondi commented Oct 18, 2022

Hey @0xdeafbeef

Minor PR to add the "error" key to responses.
https://www.jsonrpc.org/specification

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32601,
        "message": "Method `sdf` not found",
        "data": null
    },
    "id": 1
}

@0xdeafbeef 0xdeafbeef merged commit 8dd4240 into 0xdeafbeef:master Nov 25, 2022
@0xdeafbeef
Copy link
Owner

Thank you for contribution!
Sorry for long wait

@sdbondi sdbondi deleted the json-error-response-fix branch November 28, 2022 14:48
sdbondi added a commit to tari-project/tari-dan that referenced this pull request Nov 29, 2022
Description
---
- Update axum
- Includes fix from 0xdeafbeef/axum-jrpc#6
- Fallback to index.html

Motivation and Context
---
Fixes #225 
Also fixes incorrect JSON-RPC error results

How Has This Been Tested?
---
Manually
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

Successfully merging this pull request may close these issues.

None yet

2 participants