Skip to content
Init is here / May 19 - 23
Back

Appwrite Function Not Updating After Deploy

  • 0
  • Cloud
milk#9633
19 May, 2025, 03:58

I created a Node.js Appwrite function and deployed it successfully. When I accessed /ping, it returned pong as expected. Later, I cloned the function repo, edited the response to "this is an edited response", committed the changes, and pushed to the main branch. The Appwrite console detected the changes and automatically rebuilt the function. After some time, it showed the status as "active". However, when I visit the function endpoint and hit /ping, it still shows the old response "pong". I’ve confirmed that the build status says Active, the code was pushed to the correct branch, and I’ve tried refreshing the page and even accessing it in different browsers but the old response persists. Any idea why the changes aren't reflecting? Could it be a cache issue or something wrong with the deployment?

TL;DR
Developers created a Node.js Appwrite function that deployed successfully but isn't updating post-editing. Despite confirming the changes were pushed and the build status as active, the previous response persists at the function endpoint. Potential cache issue or deployment problem suggested. **Solution:** Check for any caching mechanisms that might be preventing the updated response. Also, ensure that the function has been successfully redeployed and actively running.
milk#9633
19 May, 2025, 04:00

This is the edited code I have deployed on the GitHub

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more