All issues which aren't created with this template will get immediately closed.
This happens on an Angular 7 project, I am not sure if this issue also affects other frameworks or if it is some combination with the dependencies that Angular pulls.
After some debugging (that was made harder due to zone.js), I found out that when a net::ERR_NAME_NOT_RESOLVED or an net::ERR_CONNECTION_REFUSED error will happen
request.onreadystatechange will get called with request.readyState === 4 && request.status === 0.
Since there is no handling of this case the promise will not resolve at all.
Promise should reject when the connection is refused or DNS fails to resolve.
The promise never resolves/rejects.
HttpProvider. It can be either an url of of something that is not an rpc endpoint or and invalid url that dns cannot resolve.await this.web3.eth.net.getId();[NPM, Node, Web3.js, OS, device...]
Chrome and Firefox (Linux)
Thanks for creating this issue! I will check, fix and release it asap.
Most helpful comment
Thanks for creating this issue! I will check, fix and release it asap.