```HttpClient(CIO).get<String>(``` I've trie...
# ktor
v
Copy code
HttpClient(CIO).get<String>(
I've tried this with both CIO and Apache, I just get an error
No transformation found: class io.ktor.client.engine.apache.ApacheHttpResponse -> class kotlin.String
According to https://ktor.io/clients/http-client.html this should work?
đŸ‘€ 1
đŸ“‹ 1
Seems to happen when there is no response body due to an error.
d
Then, maybe it is a bug. Since probably other exception should be thrown or returned an empty string? If that’s the case, please fill an issue here: https://github.com/ktorio/ktor/issues