Colton Idle
04/27/2025, 8:07 PMColton Idle
04/27/2025, 8:10 PMonClick = { coroutineScope.launch(Dispatchers.IO) {
uploading = true
val response = supabaseClient.functions.invoke("do-thing") {
Jan
04/27/2025, 8:14 PMColton Idle
04/27/2025, 11:13 PM19:12:00.559 E FATAL EXCEPTION: DefaultDispatcher-worker-5
Process: <http://com.rollertoaster.app|com.rollertoaster.app>, PID: 30447
io.github.jan.supabase.exceptions.UnauthorizedRestException: {"error":"Not enough time"}
URL: <https://myapp.supabase.co/functions/v1/insert-row>
Headers: [Authorization=[Bearer AUTH], x-region=[any], apikey=[], X-Client-Info=[supabase-kt/3.1.4], Accept=[application/json], Accept-Charset=[UTF-8]]
Http Method: POST
at io.github.jan.supabase.functions.Functions.parseErrorResponse(Functions.kt:134)
at io.github.jan.supabase.auth.AuthenticatedSupabaseApiKt$authenticatedSupabaseApi$3.invoke(AuthenticatedSupabaseApi.kt:60)
at io.github.jan.supabase.auth.AuthenticatedSupabaseApiKt$authenticatedSupabaseApi$3.invoke(AuthenticatedSupabaseApi.kt:60)
at io.github.jan.supabase.network.SupabaseApi.rawRequest$suspendImpl(SupabaseApi.kt:25)
at io.github.jan.supabase.network.SupabaseApi$rawRequest$1.invokeSuspend(Unknown Source:15)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@14566ff, androidx.compose.runtime.BroadcastFrameClock@828bccc, StandaloneCoroutine{Cancelling}@4a6bb15, <http://Dispatchers.IO]|Dispatchers.IO]>
Jan
04/28/2025, 11:27 AMparseErrorResponse
method but not thrown from there. Maybe we can change that 🤔Colton Idle
04/28/2025, 12:06 PMColton Idle
05/05/2025, 10:13 PMJan
05/06/2025, 8:15 PMColton Idle
05/06/2025, 10:24 PM