Problem with rfbrowser init - FetchError:

Hello, I try to install robotframework-browser to test it but during rfbrowser init process I got this error:


523 verbose audit error FetchError: request to https://registry.npmjs.org/-/npm/v1/security/audits/quick failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
523 verbose audit error at ClientRequest. (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:110:14)
523 verbose audit error at ClientRequest.emit (node:events:520:28)
523 verbose audit error at TLSSocket.socketErrorListener (node:_http_client:442:9)
523 verbose audit error at TLSSocket.emit (node:events:532:35)
523 verbose audit error at emitErrorNT (node:internal/streams/destroy:157:8)
523 verbose audit error at emitErrorCloseNT (node:internal/streams/destroy:122:3)
523 verbose audit error at processTicksAndRejections (node:internal/process/task_queues:83:21) {
523 verbose audit error code: ‘EAI_AGAIN’,
523 verbose audit error errno: ‘EAI_AGAIN’,
523 verbose audit error syscall: ‘getaddrinfo’,
523 verbose audit error hostname: ‘registry.npmjs.org’,
523 verbose audit error type: ‘system’
523 verbose audit error }

I’m using a corporate laptop and when I use an account with admin right to install the librairies I don’t have access to internet with that kind of account. This is a security topic.

EAI_AGAIN means when software tries to get the ip address of a domain name (in this case registry.npmjs.org) your dns server times out.

Few observations and questions;

  1. running rfbrowser init should not require admin rights, even in windows. At least if using python’s venv. Everything is installed into venv directory of your own choosing…
  2. How where you able to install the python packages without working network ? pip or python -mpip is working for you ?

Since you mention “corporate laptop” - solution to your issue might be to just configure a proxy. The failure here is really coming from npm install that most likely tries to go directly to the internet and fails because dns resolving fails. If you set up the proxy for npm, all those dns lookups will happen in the proxy and not on your machine. Now, ofcourse the proxy can block the access to registry.npmjs.org for “security reasons” but at least its worth to try to set it up.

Configuring a corporate proxy gives commands to set the proxy details for npm but obviously you need to get the possible user/password and host/port details from your IT side…

1 Like