in both cases. the upload completes successfully because i can see the result on the backend (uploads into a storage bucket) but I do actually get an error on the ios side.
🔴 HTTP request to https://myapp.supabase.co/functions/v1/upload-image (POST) failed with message: Content-Length mismatch: expected 434 bytes, but received 514 bytes
on Android. no error.
j
Jan
05/03/2025, 6:12 PM
Did you try reproducing this with a custom Ktor Client? So just create a raw Http Client and do the same request, if there is still an error, it may be Ktor's fault
Jan
05/03/2025, 6:13 PM
Or then you could ask in #C0A974TJ9
c
Colton Idle
05/03/2025, 6:14 PM
cool. will try that 🤞
Colton Idle
05/03/2025, 6:17 PM
i can look it up myself i guess, but does supabase pull in ktor transitively?
j
Jan
05/03/2025, 6:24 PM
should, otherwise you wouldn't have these methods in
Functions#invoke()
c
Colton Idle
05/03/2025, 6:30 PM
updated
iosMain.dependencies {
implementation("io.ktor:ktor-client-cio")
to client-native and now it works /shruggie
👍 1
Colton Idle
05/03/2025, 6:35 PM
i swear ktor is confusing because it says itll auto setup the right client engines on your behalf.