Admin
ooh that res.send at the end should be context.res.send()
Votes
0
Replies
24
Participants
Unknown
Messages
25
Admin
ooh that res.send at the end should be context.res.send()
Admin
btw i tested this (w/ the context.res.send() at the end) and it worked
Rank 3: Container
Yeah I changed that
Rank 3: Container
If it is working that is in exception
Rank 3: Container
if it works than the code need not go into the expception
Rank 3: Container
It still gives me An internal curl error has occurred within the executor! Error Msg: Operation timed out\nError Code: 500
Rank 3: Container
So what I did is I created a new function
Rank 3: Container
put everything same in my new and old function
Rank 3: Container
new function runs old function fails
Rank 3: Container
Do I have to create a new function and discard old functions
Admin
What do you mean by old function? Was the function created before 1.4?
Rank 3: Container
yes
Rank 3: Container
when cloud was at 1.1.2
Rank 3: Container
Is there a migration path I missed
Rank 3: Container
I chnged the code inside the function
Admin
In that case it still uses the old syntax. In order to use the new syntax, you must recreate the function
Rank 3: Container
So I have to create a new function
Rank 3: Container
Delete the old function right
Admin
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
Rank 3: Container
Okay I need the same id
Rank 3: Container
I'll work on it
Rank 3: Container
but there should be a migration path defined some where when cloud is updated
Admin
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)
Rank 3: Container
Thanks
Rank 3: Container
[Solved]Functions are failing