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
Describe the bug
I have some endpoints in my application whose implementations sometimes return a 304 with an empty string as a body.
I have upgraded tapir recently (from 1.2.13 to 1.10.5), and as of this commit, those endpoints no longer work: 2380053
Whenever the endpoints attempt to return a 304, I get a 500 Internal Server Error instead.
It looks like the cause is this line: case (StatusCode.NoContent | StatusCode.NotModified, Some(_)) => monad.error(new IllegalStateException(s"Unexpected response body when status code == $statusCode"))
Is there any way to disable this check or get around it? I won't be able to change the API contract of my application.
The text was updated successfully, but these errors were encountered:
Tapir version: 1.10.5
Scala version: 3.3.1
Describe the bug
I have some endpoints in my application whose implementations sometimes return a 304 with an empty string as a body.
I have upgraded tapir recently (from 1.2.13 to 1.10.5), and as of this commit, those endpoints no longer work:
2380053
Whenever the endpoints attempt to return a 304, I get a 500 Internal Server Error instead.
It looks like the cause is this line:
case (StatusCode.NoContent | StatusCode.NotModified, Some(_)) => monad.error(new IllegalStateException(s"Unexpected response body when status code == $statusCode"))
Is there any way to disable this check or get around it? I won't be able to change the API contract of my application.
The text was updated successfully, but these errors were encountered: