Closed jmacindoe closed 2 months ago
To be clear, the error is occurring on Android but when using 2.6.0-wasm. I think the issue is with downloadAuthenticatedToAsFlow
because elsewhere in my codebase I use downloadAuthenticatedAsFlow
and uploadAsFlow
without any issues on 2.6.0-wasm.
That seems to be a bug within Ktor itself. Apparently it's getting fixed in the upcoming RC, so you'll have to use the byte variant, if you want to use the wasm build.
Ok got it. Thanks for the quick reply!
Fixed in the upcoming 2.7.0-beta-1
version, which uses Ktor 3.0.0-rc-1
.
General Info
Version(s)
2.6.0-wasm0
Kotlin Target(s) and their respective versions
Android 13 (JVM 17)
What happened? (include your code)
I'm seeing the following error on 2.6.0-wasm0. The code runs fine on 2.6.0 (non-wasm) and earlier versions of supabase-kt. The error occurs when downloading a file from supabase storage - see the code below. The file is around 80MB if that's relevant.
I get one progress event: DownloadStatus.Progress(totalBytesReceived=4096, contentLength=88770642)
And then this exception comes through in the Flow
catch
function in the code below.My code:
Steps To Reproduce (optional)
No response
Relevant log output (optional)
No response