Comments (8)
Also since this is basically express, you can see how I have to set these headers:
https://github.com/dougmoscrop/serverless-http/blob/master/test/express.js#L53
I tried to work around the content-length being unset:
https://github.com/dougmoscrop/serverless-http/blob/master/lib/request.js#L33
It's possible this is hitting another scenario that I am missing or that something in an of these libraries has changed, or that something in APIg->Lambda changed :D
from serverless-http.
Thanks for reporting this.
The way I expect to debug this would be to create a new integration test with your code and then see what's going on with debug. If it works locally then I'd move to arduous testing inside an actual Lambda. In this case I'd just write the code as ES6 JS not TS.
I will take a look when I find some time, but one thing I've noticed is the content-type/content-length header sometimes trips up body-parser.
from serverless-http.
Thanks for getting back to me!
If there is anything I can do to help, let me know!
I'm really keen on using your library so I'd love to have this working!
π
from serverless-http.
Could you put together a minimal, non-TS version? For example, I don't know what is in ./Injector
from serverless-http.
Sure no worries, working on it now
from serverless-http.
Here you go,
I've mocked up a very quick test server with a controller for you.
I've got a readme in there if you need it
π
from serverless-http.
I finally got around to peeking at this, sorry it only took over a year :)
I dunno, I wrote this test: https://github.com/dougmoscrop/serverless-http/blob/master/test/inversify.js
and it worked. I didn't obvious set up all the fancy controller/injection stuff. Can you take a look? See if I did something different?
from serverless-http.
I'm gonna close this out since there's at least a basic test, if anyone wants to PR a failing test I will take it and run with it
from serverless-http.
Related Issues (20)
- Using this library with AWS function URLs? HOT 3
- body-parser middleware not triggering in Express 5/body-parser 2.x HOT 2
- Cannot work with graphql, express-graphql or graphql-http
- Multiple `set-cookie` don't end up in the final response when an ALB is the trigger
- Integration with websockets HOT 1
- gRPC connect-es support
- Double logging since v3.1.1 HOT 1
- Is there a way to disable or replacing logging? HOT 1
- Xmlrpc support ? HOT 7
- How to properly wrap the http.createServer? HOT 4
- Streaming response HOT 5
- Use with Serverless Dashboard V2.0 and CLI V3 HOT 4
- {"message":"Missing Authentication Token"}
- Support Elysia.js
- Buffer in request.body
- Catch-all error handling with API GW?
- Is this repo still being maintained? HOT 1
- Cache - help or insights
- Error Using serverless/koa with serverless V4.1.11
- query string ηε€ηειΏιδΊζε‘ε¨δΈη¬¦
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 serverless-http.