Back

appwrite push function (CLI) does not work properly

  • 0
  • Functions
  • Cloud
Tomic R.
25 Dec, 2024, 14:44

Hi! I am trying to deploy my function with appwrite CLI. Till today, it worked every time, very well, but because of some reason I am getting this output when using appwrite push function:

TypeScript
(base) name@MacBook-Pro-by-name % appwrite push function
? Which functions would you like to push? queryGooglePlaces (<id>)
Info: Validating functions ...
Info: Checking for changes ...
Info: Pushing functions ...
ErrorqueryGooglePlaces (<id>) • Document with the requested ID already exists. Try again with a
Error: No functions were pushed.

I tried deleting the function on the backend, push again, but then this happens:

TypeScript
(base) name@MacBook-Pro-by-name % appwrite push function
? Which functions would you like to push? queryGooglePlaces (<id>)
Info: Validating functions ...
Info: Checking for changes ...
Info: Pushing functions ...
ErrorqueryGooglePlaces (<id>) • Function with the requested ID could not be found.
Error: No functions were pushed.

Interestingly, it does create the function on the backend and I can see it in the console, but it does not create a deployment. But I can see a build (.tar.gz) in my root folder which is the build from this function. I am also able to deploy this build then manually, but it's obviously not a solution to delete the function, execute appwrite push function, get an error and then finally upload the build manually.

Thank you very much for your help in advance!

PS: I am using Appwrite Cloud & the newest version of appwrite CLI, I also tried reinstalling appwrite CLI, but it's still not working.

TL;DR
Appwrite CLI push function is giving errors although the functions are being created on the backend. The build files are successfully generated but not deployed. Reinstalling the Appwrite CLI did not resolve the issue.
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