You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using spring-boot 2.1.7.RELEASE, and packaged it as war deployed in a Tomcat 8.5.45.
I have a async rest controller, when it take long time to process and throw a AsyncRequestTimeoutException, The client get a response with status == 200 and empty body.
When packaged as jar and run with embedded tomcat, I can get 503 error.
I debugged in and found ErrorPageFilter suppressed the status, and doesn't send any body to client.
The text was updated successfully, but these errors were encountered:
bclozel
changed the title
ErrorPageFilter send status 200 with empty body when AsyncRequestTimeoutException
Async exceptions not handled by error pages in war deployments
Jan 3, 2020
The ErrorPageFilter is not registered against the DispatcherType.ASYNC, which means that it's not called during the ASYNC dispatch and the error status is not set. We should update the ErrorPageFilterConfiguration to register with the correct DispatcherType enum set.
I am using spring-boot 2.1.7.RELEASE, and packaged it as war deployed in a Tomcat 8.5.45.
I have a async rest controller, when it take long time to process and throw a AsyncRequestTimeoutException, The client get a response with status == 200 and empty body.
When packaged as jar and run with embedded tomcat, I can get 503 error.
I debugged in and found ErrorPageFilter suppressed the status, and doesn't send any body to client.
The text was updated successfully, but these errors were encountered: