Edge Function Deployment Issue - Code Not Updating #34817
Replies: 12 comments 2 replies
-
|
I got the same issue!!! |
Beta Was this translation helpful? Give feedback.
-
|
Hello @galileoprotocol Thank you for the detailed explanation of the issue! I took a look at the Since the release of v2.20.5, there have been some changes related to function deployments in the CLI. I recommend downloading the latest version of the Supabase CLI and trying the deployment again. Please let me know if the issue persists, and I'll be happy to assist further. |
Beta Was this translation helpful? Give feedback.
-
|
I have the same problem and I have gone to full length to try and sort it out without any success. This is insane and incredibly frustrating. Not to mention, it renders my full pipeline unusable as I can't update a key component. Should I just switch to another provider? |
Beta Was this translation helpful? Give feedback.
-
|
What I did is to create a new supabase project and everything was working
fine
Le mer. 14 mai 2025 à 13:24, pfeddy91 ***@***.***> a écrit :
… I have the same problem and I have gone to full length to try and sort it
out without any success.
This is insane and incredibly frustrating. Not to mention, it renders my
full pipeline unusable as I can't update a key component.
Should I just switch to another provider?
—
Reply to this email directly, view it on GitHub
<#34817 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDMTNEXBRKWPW6OLQHYTC7L26MRYPAVCNFSM6AAAAAB2VLH7CWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMJUGM3TGOA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
would restarting project clear this? thank you. |
Beta Was this translation helpful? Give feedback.
-
|
I'm having the same issue. Different function name. I've tried similar steps to work around the issue, but no luck. In my case, I was adding several lines for logging, but the logging never showed up. Now I know why..the function is not updating like it's supposed to |
Beta Was this translation helpful? Give feedback.
-
|
I just encountered this same issue. I've tried to even update via the dashboard editor, but the function does not update. Has there been any update to this issue? |
Beta Was this translation helpful? Give feedback.
-
|
@white-paper-proj When you say function is not updating via dashboard editor, does it mean when you make some code changes, deploy the function and reload the dashboard the code changes have not saved? From the error in original reported issue ( The easiest way to test your functions is to use the "Test" feature in the dashboard, which should make it easy to compose the right kind of payload. |
Beta Was this translation helpful? Give feedback.
-
|
I'm having the same issue. When I deploy the new function code (either via the CLI or via the supabase web interface) the code never changes. Weirdly, if I delete the function and re-deploy the old code still shows. This is sending me bonkers |
Beta Was this translation helpful? Give feedback.
-
|
Just to add, this is on the cloud version of Supabase. I did another test, this is all via the web interface on supabase.com:
Random findings:
|
Beta Was this translation helpful? Give feedback.
-
|
Just to add, this is on the cloud version of Supabase. I did another test, this is all via the web interface on supabase.com:
Random findings:
|
Beta Was this translation helpful? Give feedback.
-
|
I found a fix - my supabase edge functions were referencing files in a I also notice that during build Supabase will modify the code and it was often removing things like comments and so on. This can also confuse things if its stripping out stuff you wanted to be in there. By inlining these shared functions, deploying seemed to work again at least. Not ideal, but at least I can crack on with getting things done |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear community
I am experiencing a persistent issue deploying an Edge Function named
summarize-conversationfor my projectProblem Description:
When I deploy the function using the Supabase CLI (v2.20.5, manually installed), the CLI reports a successful deployment (e.g., "Deployed Functions on project uvcpojhvvmtpotzaahli: summarize-conversation").
However, the code running on the Supabase platform does not seem to update. When the function is invoked (even by the preflight OPTIONS request from the browser), the function logs in the Supabase dashboard consistently show logs from an initial template ("Hello from Functions!") and an error:
SyntaxError: Unexpected end of JSON input.This indicates that the deployed code bundle is not being correctly activated or served, and the function remains stuck on a corrupted or initial template version.
Troubleshooting Steps Taken:
I have already tried the following steps without success:
summarize-chat. We created a new functionsummarize-conversation, but the same deployment problem persists.SyntaxError.Conclusion:
Based on these tests, the issue does not seem related to my local code, CLI version, or configuration. It strongly points towards a platform-side problem specific to this function or potentially my project, where the deployment process completes according to the CLI but fails to update the running function code on the server.
Could you please investigate the state of the
summarize-conversationfunction for projectuvcpojhvvmtpotzaahliand help resolve this deployment issue?Thank you for your time and assistance.
Sincerely,
Pierre
Beta Was this translation helpful? Give feedback.
All reactions