Back

[solved] function build failed

  • 0
  • Users
  • Functions
dammy
6 Jun, 2023, 09:26

Sorted @safwan @safwan

Am super grateful for your assistance

You all are the best

TL;DR
The user's function was initially failing to build, but it is now building successfully. They are asking for help on how to update the previously deployed function with new code changes. The solution is to run `appwrite deploy function` after making the code changes. The user also mentions that they changed the default starting template and the code is no longer compatible with Appwrite Functions. The support team recommends creating a new post and including the code for further troubleshooting. The user confirms that the issue is resolved and expresses gratitude to the support team.
dammy
6 Jun, 2023, 09:26

[solved] function build failed

dammy
6 Jun, 2023, 09:46

Executed function manually but didn't get expected outcome...

And dart code was giving expected outcome when I ran it locally...

Drake
6 Jun, 2023, 14:48

how did you initialize your function?

dammy
6 Jun, 2023, 18:52

appwrite init project

wa successful

appwrite init function

was also successful

appwrite deploy function

was successful

dammy
6 Jun, 2023, 18:52

but when I executed it on terminal, didn't get desired result

Drake
6 Jun, 2023, 18:55

what's your code now?

dammy
6 Jun, 2023, 18:57

calling all this on main function, made it entry level for execution

previously made the default default entry and I called everything inside the default function

none of both gave desired outcome

Drake
6 Jun, 2023, 18:58

it seems like you changed the default starting template and the code is no longer compatible with Appwrite Functions

Drake
6 Jun, 2023, 18:59

please create a new <#1072905050399191082> post and include your code

dammy
6 Jun, 2023, 19:08

Ouch 🤕

dammy
6 Jun, 2023, 19:17

Worked @Steven

I activated before execution

dammy
6 Jun, 2023, 19:19

Will I need to redeploy after code changes?

Drake
6 Jun, 2023, 19:20

redeploy what?

dammy
6 Jun, 2023, 19:20

New code changes on vscode

dammy
6 Jun, 2023, 19:22

How do I push new change to function without creating new one

Drake
6 Jun, 2023, 19:32

as mentioned in the docs, you would run appwrite deploy function

https://appwrite.io/docs/command-line-deployment#deployFunctions

dammy
6 Jun, 2023, 19:33

Okay sir

dammy
6 Jun, 2023, 19:33

I appreciate you dearly

dammy
6 Jun, 2023, 20:52

Even as I emptied code functionality and deployed, I clicked execute on console and was given me previous outcome, wasn't supposed to send any result since code was commented

so how do I update the function that was deployed before?

Drake
6 Jun, 2023, 21:00

make sure you selected the function to be deployed

dammy
6 Jun, 2023, 21:00

I did

dammy
6 Jun, 2023, 21:00

Reflected on console

dammy
6 Jun, 2023, 21:00

After building, I activated it and then executed it too

Drake
6 Jun, 2023, 21:02

your function is building successfully now. please create a new <#1072905050399191082> post to troubleshoot your function and include your code

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