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
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126