This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Incorrect handling of non-json response from the remote node for HttpProvider #5236
Closed
1 task done
Labels
Bug
Addressing a bug
Is there an existing issue for this?
Current Behavior
Console would warn for unhandled promise rejection when non-json response is received from the remote node, which is a bug.
Expected Behavior
HttpProvider should throw an
Invalid JSON RPC response
error for non-json response ( Which is usually an error string from the loadbalancer )Steps to Reproduce
Web3.js Version
1.x
Environment
Fixed by latest commit from PR #5228
Anything Else?
No response
The text was updated successfully, but these errors were encountered: