© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
6 replies
Peter21

Edge Function + Google Cloud Integration Issues

Hey everyone 👋
I’m building a SaaS for PDF document processing — files are uploaded to Supabase Storage, processed via Google Cloud Vision + Vertex AI (GCP), and structured into Supabase tables.
Running locally in Cursor on localhost.
⚙️ Setup
Function: process-document
Region: europe-west3 (Frankfurt)
Goal: OCR + AI parsing → structured Excel-like data
✅ Fixed Issues
1️⃣ req.json() called twice → fixed
2️⃣ GCP credentials JSON quotes → fixed
supabase secrets set GOOGLE_APPLICATION_CREDENTIALS="$(cat service-account-key.json)"
3️⃣ Storage RLS for service_role → fixed
❌ Current Problem
Function runs but returns:
FunctionsHttpError: Edge Function returned a non-2xx status code
500 Internal Server Error
No detailed logs shown — can’t see root cause.
💡 Questions
1️⃣ How to view detailed Edge Function logs for 500 errors?
2️⃣ Best practice for GCP service account keys inside Edge Functions?
3️⃣ Proper RLS setup for file downloads via service_role?
4️⃣ Handling large PDFs / long OCR+LLM tasks — stay in Edge or use Cloud Run / queues?
5️⃣ Can GCP directly insert processed data into Supabase tables, or must it go via API / Cloud Function?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase Github Integration/Sync + Edge Function Deployment
SupabaseSSupabase / help-and-questions
4w ago
Edge Function
SupabaseSSupabase / help-and-questions
5mo ago
GOOGLE_SDK_NODE_LOGGING error on edge function
SupabaseSSupabase / help-and-questions
13mo ago
auth edge function
SupabaseSSupabase / help-and-questions
2w ago