I created Node 16 starter function with the cli. Deployed, added env vars to it in the console. Added a custom domain to it, both checks are green (DNS).
Exec: any
no error when run manually.
Then I call it outside of the console and it throws general_argument_invalid.
Is there something specific about the body that I have to pass?
Thank you.
I am done trying proxy containers like funcover. Its docs are not well put together, IMO.
Summary
The user is experiencing an issue with a function endpoint in Node.js 16. They added a domain to the .env file and the function, but the function is still not being reached. They received an error message stating that the domain is not connected to any Appwrite resource. They tried using a proxy container called funcover but it did not solve the problem. They are asking if there is anything specific they need to pass in the function body. The solution is not provided in the thread.
you added a custom domin to the function, not project?
mandolfo
Rank 2: Process
Oct 28, 2023, 00:06
I added a domain to .env (functions domain something). The project has no custom subdomains. The function is still reached.
Drake
Oct 28, 2023, 00:38
wait so it looks like it's working...what's the problem?
mandolfo
Rank 2: Process
Nov 2, 2023, 01:11
No problem at all now. Having Functions as native webhook endpoints is awesome.
.env has function endpoint set, The project does not , Each function does.