-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Sporadic 502 responses to GET requests #13851
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
Comments
Seem to be receiving this at the same time when the errors happen:
|
#4422 may be related |
Thanks for contacting us, @gaborbuzasi. |
Yes, the ObjectDisposedException looks like an issue we've addressed in 3.0 via #9389. @gaborbuzasi trying 3.0 would be a good way to verify. |
@gaborbuzasi How are you hosting your application? Are you running kestrel directly or hosting behind IIS or Azure App Service? |
@shirhatti |
We believe this to be fixed in 3.0 which is releasing this month. Please try updating when it's released and if your issue still reproduces, let us know and we can investigate further! |
Our app is a .NET Core 2.2 Web API, which is running on an Azure App Service (windows) with InProcess hosting mode.
We receive sporadic 502 responses to CORS GET requests when using the API with an SPA running VueJS. This seems to be happening only when making requests from an SPA, not in case of a native/desktop client. This is occurring across all of our environments and causes disturbance in production.
The requests contain the
Origin
which is allowed in the API in all cases.See the error (as in the browser)

See the error below (captured by Fiddler):
Allowing CORS requests are configured the following way (with the array containing a list of strings as URLs):
However, given that the very same requests sometime succeed, I believe it is unlikely that there is an issue with CORS here.
Our azure app service has the following installed:
The text was updated successfully, but these errors were encountered: