PGRST116
ماذا يعني خطأ واجهة بيانات 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-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.