Hey I'm using the Ktor Client with the CIO engine ...
# ktor
j
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
Can you share a code snippet to reproduce the problem?
j
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
I'm also having the same issue Ktor is trying to connect to the local host instead of the actual API url
j
For anyone wondering: this is where the ktor client gets created