ooh that res.send at the end should be context.res.send()
btw i tested this (w/ the context.res.send() at the end) and it worked
Yeah I changed that
If it is working that is in exception
if it works than the code need not go into the expception
It still gives me An internal curl error has occurred within the executor! Error Msg: Operation timed out\nError Code: 500
So what I did is I created a new function
put everything same in my new and old function
new function runs old function fails
Do I have to create a new function and discard old functions
What do you mean by old function? Was the function created before 1.4?
yes
when cloud was at 1.1.2
Is there a migration path I missed
I chnged the code inside the function
In that case it still uses the old syntax. In order to use the new syntax, you must recreate the function
So I have to create a new function
Delete the old function right
If you want to have the same ID, you can delete the old function and create the new one with the same id. Otherwise, just create a new function
Okay I need the same id
I'll work on it
but there should be a migration path defined some where when cloud is updated
there was on the old website: https://github.com/appwrite/docs/blob/324b3d7e039d3fd9b7e96a2b546f4a352bc8936a/app/views/docs/functions-develop.phtml#L2846-L2848, but we forgot to update it on the new website ( bottom of https://appwrite.io/docs/products/functions/development)
Thanks
[Solved]Functions are failing
Recommended threads
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...