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

Also log RPC request on error #6054

Open
bkchr opened this issue Jan 3, 2025 · 1 comment
Open

Also log RPC request on error #6054

bkchr opened this issue Jan 3, 2025 · 1 comment
Labels
Enhancement Improves existing features or performance, making the SDK more robust and efficient. P2 - Medium Important but not urgent. Enhances functionality and value, scheduled after higher priorities.

Comments

@bkchr
Copy link

bkchr commented Jan 3, 2025

It would be nice to know what RPC request lead to an error like:

Error handling request: 'RpcError: -32008: Response is too big: Exceeded max limit of 1048576

If possible, the error log should also contain the RPC request.

@TarikGul
Copy link
Member

TarikGul commented Jan 3, 2025

From what I looked into this would be pretty straightforward for the HttpProvider. That being said - the WsProvider would be somewhat of a challenge and would take a bit of work to get enhanced with the method as part of the error message.

Happy to add this to the roadmap as resources are going to start freeing up soon.

On another note - there is always the ability to track the WS logs when setting the env var DEBUG=api-ws for polkadot-js. This will atleast give all the insight needed to track the id of the rpc request that caused the error.

@TarikGul TarikGul added Enhancement Improves existing features or performance, making the SDK more robust and efficient. P2 - Medium Important but not urgent. Enhances functionality and value, scheduled after higher priorities. labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improves existing features or performance, making the SDK more robust and efficient. P2 - Medium Important but not urgent. Enhances functionality and value, scheduled after higher priorities.
Projects
Development

No branches or pull requests

2 participants