edge function issue

My Edge Function youtube-oauth is running old, cached code instead of the new code I deploy. The function shows logs like 'Listening on http://localhost:9999/' that are NOT in my local files. This appears to be a platform-level deployment sync issue. Me and my team have spent several hour's trying everything we can to fix this but we all came to the conclusion that this is a supabase issue NOT a issue on our end. If it is a issue on our end and there's a way to fix it plz lmk. If not how should we proceed
5 Replies
Ad Intellegent
@Ben Koprowski try clearing cached builds (supabase functions deploy --no-verify-jwt --importmap) or renaming/redeploying the function; if the issue persists, open a ticket with Supabase support since it’s likely a platform-level caching bug
silentworks
silentworks7d ago
When you go to your Supabase dashboard and look at the function from the new editor does it have the updated code or is it still showing the old outdated version?
Ben Koprowski
Ben KoprowskiOP6d ago
@Ad Intellegent @silentworks Thanks for the suggestions. I checked my Supabase dashboard witch shows my latest code (no localhost:9999 in editor) I also checked these 2 issues that you suggested could be the issue. Cache Clear: Ran supabase functions deploy youtube-oauth --no-verify-jwt --importmap - deployed successfully to version 3 Function Version: Shows ACTIVE | VERSION 3 | UPDATED_AT 2025-08-17 02:20:30 The Problem: Logs still show localhost:9999 despite local code not containing it Dashboard editor shows correct code Function just deployed to version 3 This confirms a platform-level caching issue - deployed function is running old cached code despite showing correct version. The localhost:9999 log is not in my local files. Should I open a support ticket with Supabase? This appears to be a platform bug where function runtime uses cached code that doesn't match deployed version. If so how do I open one I've never ran into issues like this with supabase before. (how do i open a ticket)
silentworks
silentworks6d ago
And you tried creating a new function with a different name? in regards to opening a ticket that feature is in your dashboard at the top right corner.
Ben Koprowski
Ben KoprowskiOP6d ago
no i'll try

Did you find this page helpful?