You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UnknownEndpoint: Inaccessible host: `localhost'. This service may not be available in the `us-east-1' region.
at Request.ENOTFOUND_ERROR (/Users/nico/Desktop/serverless/lambda-app/node_modules/aws-sdk/lib/event_listeners.js:507:46)
at Request.callListeners (/Users/nico/Desktop/serverless/lambda-app/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (/Users/nico/Desktop/serverless/lambda-app/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (/Users/nico/Desktop/serverless/lambda-app/node_modules/aws-sdk/lib/request.js:688:14)
at ClientRequest.error (/Users/nico/Desktop/serverless/lambda-app/node_modules/aws-sdk/lib/event_listeners.js:339:22)
at ClientRequest.<anonymous> (/Users/nico/Desktop/serverless/lambda-app/node_modules/aws-sdk/lib/http/node.js:96:19)
at ClientRequest.emit (node:events:327:20)
at ClientRequest.EventEmitter.emit (node:domain:486:12)
at TLSSocket.socketErrorListener (node:_http_client:478:9)
at TLSSocket.emit (node:events:327:20)
at TLSSocket.EventEmitter.emit (node:domain:486:12)
at emitErrorNT (node:internal/streams/destroy:188:8)
at emitErrorCloseNT (node:internal/streams/destroy:153:3)
at processTicksAndRejections (node:internal/process/task_queues:80:21)
It seems like that it cannot connect to local s3.
Obv I use serverless offline start to start all the services.
Am i missing something?
The text was updated successfully, but these errors were encountered:
@Nicoxys
Thanks for your report!! As long as I read what you said, I guess it was caused by using HTTPS to access S3.
Please try the following code at initializing the S3 object.
endpoint: new AWS.Endpoint('http://localhost:9501'),
I had to deal with this issue today, turns out I was passing the incorrect attribute when configuring the S3 service, forcePathStyle: true is for SDK 3, make sure you pass s3ForcePathStyle: true if you are using AWS SDK 2
Hi!
I state that I am only doing some simple tests to see if all this is for me. First, an example.
serverless.yml:
src/hello.ts:
So... With this setup, I receive this error:
It seems like that it cannot connect to local s3.
Obv I use
serverless offline start
to start all the services.Am i missing something?
The text was updated successfully, but these errors were encountered: