mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
Update apps/docs/content/troubleshooting/edge-function-404-error-response.mdx
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
07a48032ea
commit
4e34bed230
1 file changed
+1
-1
@@ -96,7 +96,7 @@ return new Response(JSON.stringify({ error: 'Not found' }), {
|
||||
**How to fix:**
|
||||
|
||||
1. Search your function code for `404`. Look for explicit status codes on `Response` objects.
|
||||
2. Trace the condition that triggered it. If your function calls external APIs, it may simply be passing along errors returned by those services.
|
||||
2. Trace the condition that triggered it. If your function calls external APIs, it may be passing along errors returned by those services.
|
||||
3. Add logging before the return so future occurrences leave a trace:
|
||||
|
||||
```js
|
||||
|
||||
Reference in new issue
Block a user