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

API v3: ID is sometimes int or string #312

Closed
quentinlesceller opened this issue Jan 22, 2020 · 0 comments · Fixed by #314
Closed

API v3: ID is sometimes int or string #312

quentinlesceller opened this issue Jan 22, 2020 · 0 comments · Fixed by #314

Comments

@quentinlesceller
Copy link
Member

The RPC id is sometimes a string and sometimes an integer.
Example:
init_secure_api

  "id": "1",
  "jsonrpc": "2.0",
  "result": {
    "Ok": "03ef8e5c18ff365039fa0292281e70e2881aacdbac9818e7941be3af890fd9e028"
  }
}

broken open_wallet query

{
  "error": {
    "code": -32002,
    "message": "Encrypted request format error: invalid type: string \"2\", expected u32"
  },
  "id": 1,
  "jsonrpc": "2.0"
}
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 a pull request may close this issue.

1 participant