Closed wwbakker closed 9 hours ago
We've also observed this issue and it prevents us from upgrading beyond 1.10.10
.
I ran your example with 1.11.3
and it works now. Must have been fixed at some point.
That's good news. Seems to be fixed specifically in 1.11.3, because 1.11.2 still fails. Possibly the 3.0.0 zio-http support?
I will check in a real project hopefully later today, and if that fixes it I'll close the ticket.
I added a test, passes (at least locally). Let me know if there would be any more problems
Works well now, thanks @adamw @felix-hedenstrom and the contributors to the 1.11.3!
Tapir version: Works in tapir 1.10.10 and before, broken since tapir 1.10.11 and later
Describe the bug
Consider the following code:
If I call the endpoints, both work as expected:
If I do the same with a newer version (same code, just versions changed):
If I call the endpoints, only the first one works:
Additional information I also did some research into whether this might be a zio-http issue. I see however that when using tapir, the routing is done by ZioHttpInterpreter, instead of the routing code from zio-http itself.
The interesting/funny thing there is that zio-http has the same bug, but as far as I can tell it has never worked there. (https://github.com/zio/zio-http/issues/3036)
My best guess is that the issue was introduced in this PR: https://github.com/softwaremill/tapir/pull/3856