Replies: 4 comments 6 replies
-
You handle them with a try catch block / or using runCatching |
Beta Was this translation helpful? Give feedback.
-
You can see the demo's viewmodel: https://github.com/supabase-community/supabase-kt/blob/master/demos/chat-demo-mpp/common/src/commonMain/kotlin/io/github/jan/supabase/common/ChatViewModel.kt |
Beta Was this translation helpful? Give feedback.
-
Hello. We are getting a connection error when we try to upload files to Supabase storage. It happens on the first upload and then happens again only after some idle time. Our app is running in a DEV environment and the weird thing is that the exception says "localhost". Do you have any idea what the problem can be? The code in question:
When calling the upload function, the exception we get is the following:
|
Beta Was this translation helpful? Give feedback.
-
Hi.
How handle the errors in case of bad internet connection or database error?
I have no problem when all is ok, but when I put some error in Supabase to test, the app crashes.
Can someboy tell me how handle with the errors?
I'm using Coroutines.
private fun getClient(): SupabaseClient {
return createSupabaseClient(
"https://supabase","Key"
) {
install(Postgrest)
}
}
and
val supabaseResponse = client.postgrest.from("table")
val data = supabaseResponse.decodeList()
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions