Hello, I'm facing this issue on a MPP ktor client:...
# ktor
s
Hello, I'm facing this issue on a MPP ktor client: Error: io.ktor.client.call.ReceivePipelineException: Fail to run receive pipeline The request is to gmaps: https://maps.googleapis.com/maps/api/directions/json?parameters
Copy code
val response = client.get<RoutesResponseDto> {
       val url = "${ENDPOINT}origin=${origin.latitude},${origin.longitude}&destination=${destination.latitude},${destination.longitude}&key=$apiKey"
       url(Url(url))
}
I've tried with a couple of options: 1.
url(Url("$ENDPOINT$parameters"))
2.
Copy code
private fun HttpRequestBuilder.url(path: String) {
        url {
            takeFrom(ENDPOINT)
            encodedPath = path
        }
    }
(Where path is the parameters string) Any ideas? 😞. If I print the result URL, it works perfectly with POSTMAN, chrome, retrofit... PD: Platform is Android, and I've checked also with
http
. I've found this issue -> https://github.com/ktorio/ktor/issues/866 and bump version to 1.1.3, but doesn't work