Repository navigation
Supabase edge functions 404 troubleshooting - #43488
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
8 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
rdjsonl
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule006NoAbsoluteUrls] Use relative URL '/dashboard/support/new' instead of absolute URL 'https://supabase.com/dashboard/support/new' (configure rule at supa-mdx-lint.config.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule006NoAbsoluteUrls] Use relative URL '/docs/guides/functions/auth' instead of absolute URL 'https://supabase.com/docs/guides/functions/auth' (configure rule at supa-mdx-lint.config.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule006NoAbsoluteUrls] Use relative URL '/docs/guides/functions/quickstart-dashboard' instead of absolute URL 'https://supabase.com/docs/guides/functions/quickstart-dashboard' (configure rule at supa-mdx-lint.config.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule006NoAbsoluteUrls] Use relative URL '/docs/guides/functions/quickstart' instead of absolute URL 'https://supabase.com/docs/guides/functions/quickstart' (configure rule at supa-mdx-lint.config.toml)
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughSummary by CodeRabbit
WalkthroughTwo new troubleshooting documentation pages were added: one for HTTP 401 errors in Edge Functions and one for HTTP 404 errors. The 401 page documents JWT verification failures (including legacy key and asymmetric key causes), shows sample responses and logs, and gives diagnostics and resolution steps via Dashboard, Management API, and Supabase CLI. The 404 page explains "function not found" scenarios, includes sample payloads, log-inspection queries, troubleshooting steps (typo checks, dashboard tests) and redeployment guidance. Both pages include code examples, admonitions, images, and related links. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@apps/docs/content/troubleshooting/edge-function-401-error-response.mdx`:
- Around line 125-129: Replace the em-dashes used for curl flags with standard
double hyphens so the command runs; specifically update the flags shown
(—request, —header, —data) to --request, --header, and --data in the curl
example (the Content-Type and Authorization headers and the --request PATCH
usage should remain the same), ensuring the literal strings --request, --header
'Content-Type: application/vnd.denoland.eszip', --header 'Authorization: Bearer
YOUR_SECRET_TOKEN', and --data '""' are used.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Repository UI (inherited), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 6e2cf72d-063e-4bca-9e2c-a4ff2b5e8d1e
⛔ Files ignored due to path filters (6)
apps/docs/public/img/troubleshooting/401_edge_functions_toggle_off_JWT_check.pngis excluded by!**/*.pngapps/docs/public/img/troubleshooting/401_in_the_logs.pngis excluded by!**/*.pngapps/docs/public/img/troubleshooting/edge_function_404_redeploy.pngis excluded by!**/*.pngapps/docs/public/img/troubleshooting/edge_function_404_set_timeframe.pngis excluded by!**/*.pngapps/docs/public/img/troubleshooting/edge_function_404_test_call.pngis excluded by!**/*.pngapps/docs/public/img/troubleshooting/edge_functions_401_verify_jwt.pngis excluded by!**/*.png
📒 Files selected for processing (2)
apps/docs/content/troubleshooting/edge-function-401-error-response.mdxapps/docs/content/troubleshooting/edge-function-404-error-response.mdx
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@apps/docs/content/troubleshooting/edge-function-404-error-response.mdx`:
- Around line 27-31: The note block incorrectly points readers at JWT
verification as a 404 fallback; update the Admonition ("<Admonition
type=\"note\">") text to remove the JWT reference and instead clarify that JWT
verification failures produce 401s, not 404s, and explain how to differentiate
platform-level 404s (e.g., missing route/edge function deployment) from 404s
returned by the app/function logic (e.g., explicit res.status(404) or route
handlers); replace the sentence "If the tests return a 404 but don't match the
criteria below, the error is coming from your app logic, not the JWT check."
with a succinct distinction between platform 404 and application 404 and
guidance on checking route configuration and function return paths.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Repository UI (inherited), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: e3ede493-1b21-456b-b15c-68ee139c451f
📒 Files selected for processing (2)
apps/docs/content/troubleshooting/edge-function-401-error-response.mdxapps/docs/content/troubleshooting/edge-function-404-error-response.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
- apps/docs/content/troubleshooting/edge-function-401-error-response.mdx
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…com:supabase/supabase into supabase_edge_functions_404_troubleshooting # Conflicts: # apps/docs/content/troubleshooting/edge-function-404-error-response.mdx # supa-mdx-lint/Rule003Spelling.toml
…onse.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…com:supabase/supabase into supabase_edge_functions_404_troubleshooting
Braintrust eval report
|
I have read the CONTRIBUTING.md file.
YES
What kind of change does this PR introduce?
Docs update
What is the current behavior?
No 404 debugging guide for edge functions
What is the new behavior?
Now there's a guide