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

OData middleware: modifying the response status code #859

Closed
tusmester opened this issue Jan 14, 2020 · 0 comments
Closed

OData middleware: modifying the response status code #859

tusmester opened this issue Jan 14, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@tusmester
Copy link
Member

@tusmester tusmester commented Jan 14, 2020

After the OData middleware handles the response, a subsequent middleware throws an exception when trying to set the status code:

StatusCode cannot be set because the response has already started.

The exception happens in the background so the client does not get an error.
This can be reproduced in one of the test web applications by requesting an odata endpoint in debug mode.

@tusmester tusmester added the bug label Jan 14, 2020
@tusmester tusmester added this to the Sprint 201 milestone Jan 14, 2020
@kavics kavics added the backend label Jan 16, 2020
@herflis herflis modified the milestones: Sprint 201, Sprint 202 Jan 22, 2020
@tusmester tusmester closed this Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.