When using a proxy with authentication, this error does come up.
The solution is to:
- add delay
- make the page go to a dummy URL first (httpbin.org/ip) and handle the
ERR_INVALID_AUTH_CREDENTIALS
error by throwing a warning - make the page go to the dummy URL again (httpbin.org/ip). It should not throw.
- use the page as usual
- The sourceurl evasion is not needed