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
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...