Skip to content

Supabase edge functions 404 troubleshooting - #43488

Merged
ChrisChinchilla merged 31 commits into
masterfrom
supabase_edge_functions_404_troubleshooting
Mar 11, 2026
Merged

ChrisChinchilla merged 31 commits into
masterfrom
supabase_edge_functions_404_troubleshooting

Conversation

@TheOtherBrian1

Copy link
Copy Markdown
Contributor

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

@vercel

vercel Bot commented Mar 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 Mar 11, 2026 2:10pm
8 Skipped Deployments
Project Deployment Actions Updated (UTC)
cms Ignored Ignored Mar 11, 2026 2:10pm
studio Ignored Ignored Mar 11, 2026 2:10pm
design-system Skipped Skipped Mar 11, 2026 2:10pm
learn Skipped Skipped Mar 11, 2026 2:10pm
studio-self-hosted Skipped Skipped Mar 11, 2026 2:10pm
studio-staging Skipped Skipped Mar 11, 2026 2:10pm
ui-library Skipped Skipped Mar 11, 2026 2:10pm
zone-www-dot-com Skipped Skipped Mar 11, 2026 2:10pm

Request Review

@supabase

supabase Bot commented Mar 6, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Mar 6, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Please then write in a ticket to [Supabase Support](https://supabase.com/dashboard/support/new)


🚫 [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)

- [Securing Edge Functions](https://supabase.com/docs/guides/functions/auth)


🚫 [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)

- [Quickstart Deployment: Dashboard](https://supabase.com/docs/guides/functions/quickstart-dashboard)


🚫 [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)

- [Quickstart Deployment: CLI](https://supabase.com/docs/guides/functions/quickstart)

@coderabbitai

coderabbitai Bot commented Mar 6, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Added comprehensive troubleshooting guides for Edge Function 401 and 404 errors, including diagnostic steps, root cause explanations, and resolution methods for JWT verification and function routing issues.

Walkthrough

Two 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between f0b44ae and fa59550.

⛔ Files ignored due to path filters (6)
  • apps/docs/public/img/troubleshooting/401_edge_functions_toggle_off_JWT_check.png is excluded by !**/*.png
  • apps/docs/public/img/troubleshooting/401_in_the_logs.png is excluded by !**/*.png
  • apps/docs/public/img/troubleshooting/edge_function_404_redeploy.png is excluded by !**/*.png
  • apps/docs/public/img/troubleshooting/edge_function_404_set_timeframe.png is excluded by !**/*.png
  • apps/docs/public/img/troubleshooting/edge_function_404_test_call.png is excluded by !**/*.png
  • apps/docs/public/img/troubleshooting/edge_functions_401_verify_jwt.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • apps/docs/content/troubleshooting/edge-function-401-error-response.mdx
  • apps/docs/content/troubleshooting/edge-function-404-error-response.mdx

Chris Chinchilla and others added 12 commits March 10, 2026 16:12
…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>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between fb3eb8e and c6e063d.

📒 Files selected for processing (2)
  • apps/docs/content/troubleshooting/edge-function-401-error-response.mdx
  • apps/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

Chris Chinchilla and others added 3 commits March 11, 2026 14:11
…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>
Chris Chinchilla and others added 3 commits March 11, 2026 14:40
…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>
ChrisChinchilla and others added 10 commits March 11, 2026 14:43
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
@ChrisChinchilla
ChrisChinchilla merged commit 7157fa3 into master Mar 11, 2026
24 checks passed
@ChrisChinchilla
ChrisChinchilla deleted the supabase_edge_functions_404_troubleshooting branch March 11, 2026 14:13
@github-actions

github-actions Bot commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1773238528)

Score Average Improvements Regressions
Completeness 97.2% (+3pp) 1 🟢 -
Conciseness 0% (+0pp) - -
Goal Completion 98.6% (+3pp) 2 🟢 -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 93.3% (-7.000000000000001pp) - 1 🔴
Tool Usage 100% (+0pp) - -
Correctness 95.8% (+4pp) 1 🟢 -
Docs Faithfulness 58.3% (-3pp) - 1 🔴
URL Validity 100% (+0pp) - -
Time_to_first_token 0.23tok (-0.03tok) 11 🟢 1 🔴
Llm_calls 8.53 (+0.22) 6 🟢 1 🔴
Tool_calls 3.25 (+0.31) 7 🟢 1 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 50924.08tok (+3257.22tok) 4 🟢 8 🔴
Prompt_cached_tokens 28455.11tok (-248.89tok) 6 🟢 6 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 2743.81tok (-88.08tok) 8 🟢 4 🔴
Completion_reasoning_tokens 1937.78tok (-117.33tok) 6 🟢 5 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 53667.89tok (+3169.14tok) 4 🟢 8 🔴
Estimated_cost 0.01$ (+0$) 5 🟢 7 🔴
Duration 43.39s (+0.27s) 6 🟢 6 🔴
Llm_duration 85.13s (+0.62s) 6 🟢 6 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants