Rank 3: Container
I put it but it gave the same error
Unexpected curl error between proxy and executor: Operation timed out
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
I put it but it gave the same error
Unexpected curl error between proxy and executor: Operation timed out
Rank 7: Quantum Computer
Have you verified that all of the env fields loaded correctly?
Rank 3: Container
yes
Rank 3: Container
I think it might be an error in the cloud @Christy Jacob
Rank 3: Container
the main_test.dart file runs normally on my machine
Rank 3: Container
Rank 7: Quantum Computer
Yes your code looks flawless
Rank 3: Container
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.
Rank 3: Container
ok i'll put 14s it's a test function just to show another community member how to convert csv to docs
Rank 3: Container
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
Rank 3: Container
@Husnain_bashir here is the repository. But I found this limitation, if it is to run on your machine it will work.
Admin
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
Rank 3: Container
Same error, it's like @joeyouss wrote, we should wait for the new version
Admin
are you seeing the error for every execution? did you wrap with try/catch?
Rank 3: Container
the error changed
Rank 3: Container
{"error":"type '_OneByteString' is not a subtype of type 'int' of 'index'"}
Rank 3: Container
funny thing is that on the local machine I can run
Admin
also, request.payload is a string, not map so you can't do reqest.payload['fileId']
Rank 3: Container
ok i will treat
Rank 3: Container
bazinga! It worked
Rank 3: Container
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."
Rank 3: Container
@Husnain_bashir you can use the function, I updated git sorry for the delay and for not paying attention to the documentation.
Rank 3: Container
[SOLVED] Failed to execute function via console. cloud.appwrite