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
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...