Open Petter-K opened 3 days ago
/bounty $150 for fix and test case.
/attempt #3141
with your implementation plan/claim #3141
in the PR body to claim the bountyThank you for contributing to zio/zio-http!
Add a bounty • Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
🟢 @varshith257 | Sep 18, 2024, 1:46:20 PM | WIP |
🟢 @987Nabil | #3150 |
/attempt #3141
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@varshith257 | 4 ZIO bounties + 9 bounties from 6 projects |
TypeScript, Go |
Cancel attempt |
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward.
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 paramsTo 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