Let me try logging the keys
I'm guessing it times out either because there's a path for your function to end without returning, or somehow your function takes a long time to run (I doubt it)
I confirmed the api key and project are correct, i also tried hard coding them and not getting them from env but still it doesn't work
The error seems like an SDK connection to the database or something.
@Christy Jacob Might wanna take a look here
Does the request work outside an Appwrite function?
Like if you ran this PHP function locally
Trying to isolate where the issue is.
you can try running curl http://45.76.46.20/v1/health/version
from your server and then from inside your runtime container. you might have a firewall problem
Hi Steven let me try this
I ge the response as {"version":"1.4.3"}
you executed this from the server? What about inside the runtime container?
@Steven I think you are right, if i curl inside the runtime container the request takes too long then finally timeout.
It's probably a firewall problem. Try to disable your firewall just to test
So what can the workaround be to this problem.
Firewall inside the linux server right ?
Alright, thanks let me try.
Thanks @Steven after disabling the ufw firewall now my functions executes :appwritefire:
ok now that you've confirmed that's the problem. the solution would be to turn on firewalls again, but add rules for appwrite to allow all traffic on your appwrite ports (by default that would be 80 and 443)
Oky got it
π€£ This is a new one
[SOLVED] operation timeout on function execution
π π
I struggled for two days luckly @Steven saved meπ
You got us worried since we'd just completed the migrations and thought we broke something!
Recommended threads
- HTTP POST to function returning "No Appw...
Hi everyone, Iβm running into an issue with my self-hosted Appwrite instance. Iβve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...