#Functions URL Mistake
42 messages · Page 1 of 1 (latest)
Huh I’ve not had this happen. How are you creating the function?
It doesn't work in any case. Neither with the CLI nor from the console
How are you creating the function
I think this is the fault, but I don't know how to fix it
appwrte init function and appwrite deploy function
I assume you're self hosting? If so, fix your function domain env variable and recreate your function
Which variable and what should I record?
The function domain one
my variable is _APP_DOMAIN_FUNCTIONS=appwrite.example.com
amd _APP_DOMAIN=appwrite.example.com
Ok now recreate your function. Or create a new one
It was already like that from the beginning
Why is this so?
Is there an answer?
Docker Error: 7bcca17daaf30781fad9a521f99f7404bdeb740208f7105644efe232061b3f63
docker: Error response from daemon: network runtimes not found.
/usr/src/code/src/Executor/Executor.php:97
#0 /usr/src/code/src/Appwrite/Platform/Workers/Builds.php(407): Executor\Executor->createRuntime('667762357b2ba53...', '667737f200242fd...', '/storage/functi...', 'openruntimes/no...', 'v3', true, 'index.js', '/storage/builds...', Array, 'tar -zxf /tmp/c...')
#1 [internal function]: Appwrite\Platform\Workers\Builds->Appwrite\Platform\Workers\{closure}()
#2 {main}
Because you used an incorrect function domain when you created the function
I did not select a domain at all when creating the feature. how do i do that?
It's auto generated based on your function domain env var
what is mistake?
this is my env file
has it always been that? If you do docker compose up -d and retry the function generation does it do the same thing?
Yes, I installed it for the third time already. I use Coolify on my server
Also when I try to add a custom domain. It doesn't give me a sample CNAME record
@paper summit @sage egret please answer me
Hey man, it's the weekend we've all got things going. I'm looking at it when time allows.
Please keep in mind you are not using a standard installation so things may not work as expected.
This is probably due to coolify creating a runtime network that is named differently than expected. Check what runtime network you have and make sure the functions runtime env var is set to that network
Please be considerate. As Kenny said, it's the weekend and this is a community server where people voluntarily help
Please inspect the env vars of the appwrite container and share the function domain env var
Hi,
I am having the same error. I am using Coolify as well. My problem is that in coolify I got myurl.com as env entered but when inspecting the env of the container its https://myurl.com... That propably a Coolify error?
And double checked: The .env file on my server has the correct entry of myurl.com but still when composing up its the wrong again
What exactly are you looking at and what exactly are you doing?
What's in your compose file?
I moved away from coolify and installed it as described in your documentation and now everything seems to be working. Only correctly pasting in the private github app key is a bit of a pain 😄
But thanks a lot for trying to help
One more thing I noticed (totally different topic): HTTP calls to Functions with the Any permission do not count towards total execution/requests number in the dashboard(s). Is that correct and supposed to be this way?
no, all requests to execution are logged towards total execs.
can you create a different thread and mark this solved if thats the case?
Remove Coolify and use the AppWrite separately. This is the solution to my problem.
Same for me ^^
You should be banned from this server man
What's going on?