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

Make RPC argument errors more informative #3167

Closed
sisou opened this issue Nov 28, 2024 · 0 comments · Fixed by nimiq/jsonrpc#29
Closed

Make RPC argument errors more informative #3167

sisou opened this issue Nov 28, 2024 · 0 comments · Fixed by nimiq/jsonrpc#29
Assignees

Comments

@sisou
Copy link
Member

sisou commented Nov 28, 2024

When calling an RPC method with the wrong number of arguments or wrong type of arguments, the error is horrible, always the same and says nothing:

Invalid params: Expected an object for the request parameters.

Can we add details to the error message, which argument is missing or wrong and why?

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.

2 participants