Skip to content

getaddrinfo ENOTFOUND nginx

Created by: cmeessen

When running

make frontend

There seem to be some errors with nginx. Steps to reproduce:

  1. Activate LOCAL in RSD_AUTH_PROVIDERS inside .env
  2. make frontend
  3. Open http://localhost:3000
  4. Click on "Sign in"
  5. Use local provider
  6. TYpe a name and click sign in

error message

Output in the docker log

hifis-frontend-dev-1  | error - Error: getaddrinfo ENOTFOUND nginx
hifis-frontend-dev-1  |     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:84:26) {
hifis-frontend-dev-1  |   errno: -3008,
hifis-frontend-dev-1  |   code: 'ENOTFOUND',
hifis-frontend-dev-1  |   syscall: 'getaddrinfo',
hifis-frontend-dev-1  |   hostname: 'nginx'
hifis-frontend-dev-1  | }