-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON parse error: SyntaxError: JSON Parse error: Unexpected character: d #277
Comments
Actually this appears to be coming from realtime. The following code:
On every change that comes in on the |
Having similar issues here, I log all the payload is fine |
Hey, I eventually found out that the backend inserted a wrong type to a jsonb field in supabase. However, this does not trigger any error log cuz the payload is already inside and it is assumed to be the correct type. So either avoid this in the backend or find some ways to raise this error in supabase js |
same as for me: Error All course fetching data: [SyntaxError: JSON Parse error: Unexpected character: N] |
Bug report
Describe the bug
supabase-js is logging
JSON parse error: SyntaxError: JSON Parse error: Unexpected character: d
with no stack and no further detail after successfully upserting a row to the database.To Reproduce
With the above upsert
error
isnull
but somewhere internal to supabase-js logsJSON parse error: SyntaxError: JSON Parse error: Unexpected character: d
. If I comment out this upsert operation the spurious error log goes away.Expected behavior
If there is an error supabase-js should return or throw it
Screenshots
N/A
System information
Additional context
The text was updated successfully, but these errors were encountered: