james
03/05/2024, 10:41 PMjs
target?
I have a Ktor client which is communicating with my API successfully, converting the response body into a String
, and it works as expected on all JVM and native targets, but I’ve just added a js
target and while I can see the successful fetch response in Chrome dev tools, if I print the response to the console it is always blank
this is the first time I’ve setup my own js
target in a project, so I wonder if I’ve missed something? content negotiation with json serialization is installed, but I wouldn’t have expected that to make a difference here since I’m just trying to receive the body as a String
and not another serializable objectAleksei Tirman [JB]
03/06/2024, 7:42 AMjames
03/06/2024, 8:01 AM3.0.0-wasm2
version from the JetBrains experimental maven repo. Somehow it was silently incompatible with one of the others, so there was no visible error or exception 😬