JsonDecodingException: Unexpected JSON token #251
-
I see the default Json contains ignoreUnknownKeys = true but why my app still throw this exception. I already try to install ContentNegotion with the custom Json with httpConfig {} but it doesn't work neither. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
never update the http config unless you know what you are doing, you could break the supabase client. What were you trying to do when this error occured? |
Beta Was this translation helpful? Give feedback.
-
these config should take effect but not:
|
Beta Was this translation helpful? Give feedback.
-
I still don't know what you were doing when this error occured, but I think that should fix it: defaultSerializer = KotlinXSerializer(json)
install(GoTrue)
install(Postgrest)
install(Realtime)
//no httpConfig! |
Beta Was this translation helpful? Give feedback.
I still don't know what you were doing when this error occured, but I think that should fix it: