-
Notifications
You must be signed in to change notification settings - Fork 41
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
POST requests not working #78
Comments
I forgot to mention that when I say "not working", the request gets stuck with no response at all and timeout. |
Ok, I did some extensive debugging this morning and found the cause of the issue: the functions runtime already parse the JSON body and provide it to the Though I willing to open a PR to fix this, I would like some advice on what you think would be the best approach to solve this? I'm also wondering about the upstream package |
Sorry for the spam, seems a workaround has already been proposed to |
Thanks @sinedied, your workaround solved this problem in my env. // main/index.ts
|
Thanks for sharing @sinedied. I've added this workaround to the |
Thanks @kamilmysliwiec , but to be honest this workaround was not meant for production as it doesn't solve all issues here, for example file upload are still not working. I can't find any way to contact the original author of Meanwhile I'm still trying to contact the original author, as the best fix would still best to be upstream. |
@sinedied maybe we should no longer use the "azure-function-express" and just bring the entire functionality here? Hence, we won't be dependent on them in the future. This package seems to be fairly small either way. Would you like to contribute to this and (if so) create a PR? |
@kamilmysliwiec even better, I'll work on that. Do you want to reopen this issue or should I open a new one to track the changes? |
I would suggest creating a new one:) |
@sinedied I shared your frustration regarding azure-function-express and have moved my own dependencies over to use https://github.com/mikestaub/serverless-express (added benefit of it now being deployable on 3 clouds) |
@dcollien I'm interested in that too, I saw your PR there for the stream |
I'm submitting a...
Current behavior
When using the
npm run start:azure
entry point or deploy my app on Functions, POST requests are not working. Using the regular entry pointnpm start
, requests works well.Expected behavior
POST requests works the same using azure functions entry points or the regular one.
Minimal reproduction of the problem with instructions
npm start:azure
But really, this can be reproduced with any project and POST requests. (GET requests works fine)
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: