supabase/supabase · error · Error

Failed to send to Slack

Error message

Failed to send to Slack

What it means

Error "Failed to send to Slack" thrown in supabase/supabase.

Source

Thrown at apps/www/app/api-v2/opt-out/[ref]/route.ts:92

    )
  }

  try {
    const { error: supabaseError } = await supabase
      .from('manual_reports')
      .insert([{ project_ref: ref, reason, email }])

    if (supabaseError) {
      throw new Error(`Supabase error: ${supabaseError.message}`)
    }

    const response = await fetch(process.env.EMAIL_REPORT_SLACK_WEBHOOK as string, {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ text: `New report from: ${ref} \n\n ${reason}` }),
    })

    if (!response.ok) throw new Error('Failed to send to Slack')

    return NextResponse.json(
      { message: 'Thank you! We have received your report.' },
      { status: 200 }
    )
  } catch (error) {
    Sentry.captureException(error)
    const errorMessage = (error as Error).message
    return NextResponse.json(
      { error: `Failure: Could not send post to Slack. Error: ${errorMessage}` },
      { status: 500 }
    )
  }
}

View on GitHub (pinned to beee91b9c2)

When it happens

Trigger: Thrown at apps/www/app/api-v2/opt-out/[ref]/route.ts:92 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of supabase/supabase@beee91b9c2 (2026-08-12). Data as JSON: /api/errors/bfdd8bcb0d67265c. Report an issue: GitHub.