I put it but it gave the same error Unexpected curl error between proxy and executor: Operation timed out
Have you verified that all of the env fields loaded correctly?
yes
I think it might be an error in the cloud @Christy Jacob
the main_test.dart file runs normally on my machine
Yes your code looks flawless
Hey 👋 this is a known issue and we are working on it, however you can try something this might help you, if not - we will let you know when it's solved. So, Operation timed out is there to stop execution when it exceeds the timeout you specify in function settings. This value is 15s by default. Feel free to increase it. If you don't expect your function for running that long, you can debug your function to see which section takes most of the time.
ok i'll put 14s it's a test function just to show another community member how to convert csv to docs
did not work. If it's a known issue let's wait for the update. Thanks @joeyouss and @Binyamin
Thanks for your patience, I wll let you know soon as and when there is more info about this
@Husnain_bashir here is the repository. But I found this limitation, if it is to run on your machine it will work.
on newer versions of Appwrite, the variables are in request.variables rather than request.env. Maybe you can also wrap your code is a try catch so that your function doesn't throw any exceptions
Same error, it's like @joeyouss wrote, we should wait for the new version
are you seeing the error for every execution? did you wrap with try/catch?
the error changed
{"error":"type '_OneByteString' is not a subtype of type 'int' of 'index'"}
funny thing is that on the local machine I can run
also, request.payload is a string, not map so you can't do reqest.payload['fileId']
ok i will treat
bazinga! It worked
Sorry community for not paying attention to the documentation: https://appwrite.io/docs/functions#writingYourOwnFunction "payload A JSON string containing the data when you created the execution."
@Husnain_bashir you can use the function, I updated git sorry for the delay and for not paying attention to the documentation.
[SOLVED] Failed to execute function via console. cloud.appwrite
Recommended threads
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...