
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
- Missing C++ libstdc library in Python fu...
I have a function running Python 3.12 which suddenly started dumping errors (as of today; it worked yesterday). I hadn't changed any code so I found this odd, b...
- Checkout error: Error: Request body is e...
Im absolutely stumped here. ```Initializing Stripe functionality... stripe.ts:74 Calling Appwrite function with payload: {price_id: 'price_1RdZzoDCvcSnLsdCCu8z3...
- Clarification Needed on Custom Domains a...
Hello, I need help configuring custom domains/subdomains in Appwrite: 1. **Current Setup**: - Transferred `mydomain.com` to Appwrite via nameservers ...
