-
-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-GET HTTP requests hanging #1151
Comments
Same behavior on my system from this morning too. I'm using typescript in an Ubuntu 20 machine. So, I think it could be related to a change either in the |
I just started experiencing this exact issue today as well.
|
I'm experiencing this problem as well. |
Same here. Temporary downgrading node from |
To fix this, it's important that your yarn does not install node 15 as a dependency, which will happen if you use homebrew to install it. Here's how we brute-forced it:
It's possible that removing all the dependencies is unnecessary, so you could try just uninstalling yarn, unlinking node@15, and then re-installing yarn with npm and not homebrew. Haven't run the following but the commands would be something like:
It's nearly certain someone who knows more command line flags of brew would be able to finesse this with less carnage, but I assume this will be resolved quickly. |
@mrflip did you know about "n"? I use this for a quite long time now and this is great! |
Same issue here. This is a pretty nasty blocker for using the new node js. I'm curious to learn which node js feature changed that this depended on. 🤔 |
Same here, had to downgrade node to v14. |
I also downgraded node to v14 and it worked. |
Is there a fix coming for node 15? |
Culprit found!!! Thanks to #1150 (comment) After my several tests, only Node |
I was using node v12.16.1, upgraded to v14.16.1 still the same issue. |
Can confirm with 15*, 14.16.1 works. |
Maybe it isn't coz of the node version? Coz I confirm that I am using the current LTS node v14.16.1 with the same problem. (Also all my API works just fine when deployed on AWS or invoked locally using |
Does that mean I might have multiple versions of |
Works well on Node 15.14.0. Tested |
I just ran into this as well - was on node |
Was on node 16 something (didn't note it down) ended up downgrading to |
This issue forced me into learning how to use |
Solution is simple |
I ran into this as well, the plugin hangs on |
Related to #1150 |
Bug Report
Current Behavior
When sending a non-GET (e.g. POST) request to an
httpApi
endpoint, the request hangs. This doesn't happen with GET requests.Sample Code
/~https://github.com/s16h/sls-offline-hanging-repro
Expected behavior/code
The expectation is that a POST request should return a response.
Environment
serverless
version: 2.16.1serverless-offline
version: 6.8.0node.js
version: v15.5.0OS
: macOS 11.1python
version: 2.7.16 and 3.9.1 (Haven't tested with other versions)The text was updated successfully, but these errors were encountered: