-
Notifications
You must be signed in to change notification settings - Fork 401
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
ClassCassException when using HandlerAspect and Path parameters. #3141
Comments
/bounty $150 for fix and test case. |
💎 $150 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
/attempt #3141
|
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
@varshith257: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
The bounty is up for grabs! Everyone is welcome to |
Any update on this? |
I have a proposal. But it is breaking. I want to take a look agin together with @jdegoes |
Describe the bug
We are getting ClassCastExceptions when using a route with Path paramters, and a middleware that adds context.
class zio.http.Request cannot be cast to class scala.Tuple2 (zio.http.Request and scala.Tuple2 are in unnamed module of loader 'app')
Tuple2 is increasing if we add more path params
To Reproduce
Run this snipped
run:
curl -v 127.0.0.1:8080/base/1
Expected behaviour
Log Hello and return 200 Ok
Additional context
Same error in scala 2 and 3.
Using Intellij breakpoints on all exception, it stops at Handler.scala - line 57
The text was updated successfully, but these errors were encountered: