Hey I'm using the Ktor Client with the CIO engine for my Android App, however I have some problems with it. First, for some reason instead of connecting to the actual url I provided, it tries to connect to localhost and sometimes it works, then when I assemble the release apk it only connects to localhost. I tried the OkHttp engine and it works perfectly fine.
a
Aleksei Tirman [JB]
09/03/2023, 8:22 AM
Can you share a code snippet to reproduce the problem?
j
Jan
09/03/2023, 10:08 AM
I can try, but not now. The android app uses supabase-kt, which makes the HTTP requests using the ktor engine I added. I can try to add raw ktor requests
e
Eric Ampire [MOD]
09/29/2023, 5:43 PM
I'm also having the same issue
Ktor is trying to connect to the local host instead of the actual API url
j
Jan
09/29/2023, 8:32 PM
For anyone wondering: this is where the ktor client gets created