Comments (4)
Thanks! What's the problem you run into?
from lambda-middleware.
I'm seeing stuff like this:
TypeError: Cannot read properties of undefined (reading 'toLowerCase')
20 | async (event: APIGatewayEvent, context: Context): Promise<APIGatewayProxyResult> => {
21 | logger('Running handler')
> 22 | const response = await handler(event, context)
| ^
23 | logger('Response received')
24 | if (response === undefined) {
25 | logger('Undefined response, returning statusCode 204')
at node_modules/@lambda-middleware/cors/src/cors.ts:38:26
from lambda-middleware.
The line with the error is the line that calls your handler, so the error might be related to the handler. Could you please share a small repo with the error with the full context including a handler? Thanks! :)
from lambda-middleware.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
from lambda-middleware.
Related Issues (20)
- Enable Github Actions to automatically build
- Add typeorm middleware for connecting to a database HOT 3
- Question - Composing multiple middleware HOT 10
- Unable to JSON serialize type with optional keys HOT 4
- jsonSerializer does not pass through correct event type HOT 4
- Interest in a path parser middleware? HOT 3
- Allowing PromiseHandler to have generic Context HOT 1
- Help with composeHandler response HOT 1
- Middleware ordering causes type conflicts on remaining middleware HOT 1
- @lambda-middleware/utils package is pulling in the entire aws-sdk package HOT 1
- Add a JSON Deserializer Middleware HOT 5
- Add io-ts validator middleware HOT 5
- Should doNotWait middleware make context.callbackWaitsForEmptyEventLoop true instead of boolean? HOT 1
- class-validator seems to break the type inference for the handler HOT 1
- JsonDeserializer does not accept content-type header with charset HOT 2
- JSONSchema validator with AJV HOT 2
- Can we use different event type? Now strict to `APIGatewayEvent ` HOT 2
- Allow deserializeBody to work with APIGatewayProxyEventV2 HOT 1
- Compatibility with Http API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lambda-middleware.