Skip to content
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

Cannot get response data from iisnode #683

Open
devcaco opened this issue Oct 26, 2020 · 0 comments
Open

Cannot get response data from iisnode #683

devcaco opened this issue Oct 26, 2020 · 0 comments

Comments

@devcaco
Copy link

devcaco commented Oct 26, 2020

Hello.

I have an API running on IIS with iisnode configured. Everything is working fine exept that when my API sends a 400 status response with a JSON structure the client does not receive the content of the JSON. This only happens when running the API with IISNODE otherwise it works perfectly. At first I was getting a HTML response but I went ahead and added <httpErrors existingResponse="PassThrough" /> to the web.config file and now I'm receiving the JSON/Application response, but the Body/Message is still empty.

How can I send JSON Data with the response in IISNODE?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant