Note this example uses a publicly available API that just echos back the payload sent.
I do have a very very ugly workaround right now that solves my problem but at mem and performance cost, essentially i just copy the request and responses in a naive manner and then defer one set to logging, and one to actual use:
Looks like a race condition from trying one of okhttp's callbacks asynchronously. I can't find any relevant documentation, but blocking one of their threads 😓 seems to work.
As the title says, minimized example:
Note this example uses a publicly available API that just echos back the payload sent.
I do have a very very ugly workaround right now that solves my problem but at mem and performance cost, essentially i just copy the request and responses in a naive manner and then defer one set to logging, and one to actual use:
https://gist.github.com/GrafBlutwurst/2bc68aff07c742902188f82699ac4f2c
build.sbt:
Main.scala
Example Run:
The text was updated successfully, but these errors were encountered: