Back

general_argument_argument in 1.4.7 function. NodeJS 16

  • 0
  • Self Hosted
  • Functions
mandolfo
26 Oct, 2023, 22:33

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.

TL;DR
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.
mandolfo
26 Oct, 2023, 22:45

docker compose logs appwrite

TypeScript
appwrite  | [Error] File: /usr/src/code/app/controllers/general.php
appwrite  | [Error] Line: 67```

Okay
Drake
27 Oct, 2023, 01:02

you added a custom domin to the function, not project?

mandolfo
28 Oct, 2023, 00:06

I added a domain to .env (functions domain something). The project has no custom subdomains. The function is still reached.

Drake
28 Oct, 2023, 00:38

wait so it looks like it's working...what's the problem?

mandolfo
2 Nov, 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.

Drake
2 Nov, 2023, 02:26

Sooo are you all good now?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more