Home > Software engineering >  Why is the error displayed when starting the application on expreess js: getaddrinfo ENOTFOUND local
Why is the error displayed when starting the application on expreess js: getaddrinfo ENOTFOUND local

Time:04-11

When I try to run the hosted API app, I get the following message:

2022-04-11T12:32:31: Server running at http://localhost:9000

2022-04-11T12:32:31: Error: getaddrinfo ENOTFOUND localhostss

2022-04-11T12:32:31: at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) {

2022-04-11T12:32:31: errno: -3008,

2022-04-11T12:32:31: code: 'ENOTFOUND',

2022-04-11T12:32:31: syscall: 'getaddrinfo',

2022-04-11T12:32:31: hostname: 'localhostss',

2022-04-11T12:32:31: fatal: true

2022-04-11T12:32:31: }

Please help me fix

index.js: enter image description here

CodePudding user response:

hostname is wrong according to error hostname is localhostss rather than localhost

  • Related