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: