Alguem sabe como resolver?
GET /dev/pacientes (λ: listarPacientes)
Error UnknownEndpoint: Inaccessible host: localhost' at port
8000'. This service may not be available in the `localhost' region.
at Request.ENOTFOUND_ERROR (/home/hugo/Documents/projetos/cadastro-pacientes/node_modules/aws-sdk/lib/event_listeners.js:529:46)
at Request.callListeners (/home/hugo/Documents/projetos/cadastro-pacientes/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (/home/hugo/Documents/projetos/cadastro-pacientes/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (/home/hugo/Documents/projetos/cadastro-pacientes/node_modules/aws-sdk/lib/request.js:686:14)
at error (/home/hugo/Documents/projetos/cadastro-pacientes/node_modules/aws-sdk/lib/event_listeners.js:361:22)
at ClientRequest. (/home/hugo/Documents/projetos/cadastro-pacientes/node_modules/aws-sdk/lib/http/node.js:99:9)
at ClientRequest.emit (node:events:390:28)
at ClientRequest.emit (node:domain:475:12)
at Socket.socketErrorListener (node:httpclient:447:9)
at Socket.emit (node:events:390:28)
at Socket.emit (node:domain:475:12)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'UnknownEndpoint',
region: 'localhost',
hostname: 'localhost',
retryable: true,
originalError: Error: connect ECONNREFUSED 127.0.0.1:8000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
errno: -111,
code: 'NetworkingError',
syscall: 'connect',
address: '127.0.0.1',
port: 8000,
region: 'localhost',
hostname: 'localhost',
retryable: true,
time: 2022-02-09T19:27:40.309Z
},
time: 2022-02-09T19:27:40.309Z