Running serverless offline via docker, and get my endpoints listed out
GET | http://0.0.0.0:3000/local/hello/get
When i hit my endpoint from postman
items_api | [offline] contentType: application/json
items_api | [offline] requestTemplate:
items_api | [offline] payload: null
items_api | [offline] event: {
items_api | body: null,
items_api | headers: {
items_api | 'Content-Type': 'application/json',
items_api | 'User-Agent': 'PostmanRuntime/7.28.0',
items_api | Accept: '*/*',
items_api | 'Postman-Token': 'd5d69254-cd33-44d4-9ad0-e9f8cd43715a',
items_api | Host: '0.0.0.0:49160',
items_api | 'Accept-Encoding': 'gzip, deflate, br',
items_api | Connection: 'keep-alive',
items_api | 'Content-Length': '71'
items_api | },
items_api | httpMethod: 'GET',
items_api | isBase64Encoded: false,
items_api | multiValueHeaders: {
items_api | 'Content-Type': [ 'application/json' ],
items_api | 'User-Agent': [ 'PostmanRuntime/7.28.0' ],
items_api | Accept: [ '*/*' ],
items_api | 'Postman-Token': [ 'd5d69254-cd33-44d4-9ad0-e9f8cd43715a' ],
items_api | Host: [ '0.0.0.0:49160' ],
items_api | 'Accept-Encoding': [ 'gzip, deflate, br' ],
items_api | Connection: [ 'keep-alive' ],
items_api | 'Content-Length': [ '71' ]
items_api | },
items_api | multiValueQueryStringParameters: null,
items_api | path: '/hello/get',
items_api | pathParameters: null,
items_api | queryStringParameters: null,
items_api | requestContext: {
items_api | accountId: 'offlineContext_accountId',
items_api | apiId: 'offlineContext_apiId',
items_api | authorizer: {
items_api | claims: undefined,
items_api | scopes: undefined,
items_api | principalId: 'offlineContext_authorizer_principalId'
items_api | },
items_api | domainName: 'offlineContext_domainName',
items_api | domainPrefix: 'offlineContext_domainPrefix',
items_api | extendedRequestId: 'ckpgm20yq000001p4hr9h4xrp',
items_api | httpMethod: 'GET',
items_api | identity: {
items_api | accessKey: null,
items_api | accountId: 'offlineContext_accountId',
items_api | apiKey: 'offlineContext_apiKey',
items_api | apiKeyId: 'offlineContext_apiKeyId',
items_api | caller: 'offlineContext_caller',
items_api | cognitoAuthenticationProvider: 'offlineContext_cognitoAuthenticationProvider',
items_api | cognitoAuthenticationType: 'offlineContext_cognitoAuthenticationType',
items_api | cognitoIdentityId: 'offlineContext_cognitoIdentityId',
items_api | cognitoIdentityPoolId: 'offlineContext_cognitoIdentityPoolId',
items_api | principalOrgId: null,
items_api | sourceIp: '172.24.0.1',
items_api | user: 'offlineContext_user',
items_api | userAgent: 'PostmanRuntime/7.28.0',
items_api | userArn: 'offlineContext_userArn'
items_api | },
items_api | path: '/hello/get',
items_api | protocol: 'HTTP/1.1',
items_api | requestId: 'ckpgm20yr000101p42k1m2985',
items_api | requestTime: '03/Jun/2021:08:02:25 +0000',
items_api | requestTimeEpoch: 1622707345228,
items_api | resourceId: 'offlineContext_resourceId',
items_api | resourcePath: '/local/hello/get',
items_api | stage: 'local'
items_api | },
items_api | resource: '/hello/get',
items_api | stageVariables: undefined
items_api | }
items_api | [offline] Loading handler... (/app/handler)
items_api |
items_api | Error ---------------------------------------------------
items_api |
items_api | Error: write EPIPE
items_api | at afterWriteDispatched (node:internal/stream_base_commons:160:15)
items_api | at writeGeneric (node:internal/stream_base_commons:151:3)
items_api | at Socket._writeGeneric (node:net:769:11)
items_api | at Socket._write (node:net:781:8)
items_api | at writeOrBuffer (node:internal/streams/writable:389:12)
items_api | at _write (node:internal/streams/writable:330:10)
items_api | at Socket.Writable.write (node:internal/streams/writable:334:10)
items_api | at /usr/local/lib/node_modules/serverless-offline/dist/lambda/handler-runner/python-runner/PythonRunner.js:159:35
items_api | at processTicksAndRejections (node:internal/process/task_queues:78:11)
items_api |
items_api | Get Support --------------------------------------------
items_api | Docs: docs.serverless.com
items_api | Bugs: github.com/serverless/serverless/issues
items_api | Issues: forum.serverless.com
items_api |
items_api | Your Environment Information ---------------------------
items_api | Operating System: linux
items_api | Node Version: 16.2.0
items_api | Framework Version: 2.44.0
items_api | Plugin Version: 5.2.0
items_api | SDK Version: 4.2.3
items_api | Components Version: 3.11.0
items_api |
items_api | /bin/sh: python3: not found