PGRST116
מה אומרת שגיאת ה-API של הנתונים ב-Supabase הזאת
איך זה מופיע
Cannot coerce the result to a single JSON object
מה זה אומר
The request asked for exactly one row, but the query returned zero rows or more than one, so the API answered with HTTP 406. The details field says how many, for example "The result contains 0 rows".
הסיבה הנפוצה באפליקציה שנבנתה עם AI
AI-written code often ends a lookup with .single(), for example to load the signed-in user's profile. When that row was never created, or a row level security policy hides it, the query returns 0 rows and fails.
בדקו את זה קודם
Read the details field of the error: 0 rows means the row is missing or hidden by a policy, and a number above 1 means your filter matches more than one row.