Back

Appwrite CLI Fails For Appwrite Behind NPM

  • 0
  • Self Hosted
Tanner Meade
1 Feb, 2025, 01:06

I'm trying to get Appwrite working in a new setup. I've got it running on a server with other containers running. Nginx Proxy Manager is used to route traffic to where it needs to do. I've got the Appwrite stack running with the traefik ports configured to 7080:80 and 7443:443. Pi-hole and NPM are routing a dns record appwrite.mylocaldomainonlyservedinpihole.com to the appwrite stack via the hostname of the machine and the 7080 port via http.

When I try using the Appwrite console, I works as expected. When I try using the Appwrite CLI, I can not get it to work. When I use https to connect to the server, the CLI verbose message has undefined code and response variables. When I use http, it has 404 and general_route_not_found. I have tried using localhost, the hostname of the server, and the dns record in the env vars but it has no effect on the response obtain via the CLI.

Any ideas on what to try next?

TL;DR
Appwrite CLI is failing to work behind NPM due to incorrect endpoint inclusion. Ensure to include v1 in the endpoint when connecting.
Steven
1 Feb, 2025, 01:27

Did you include v1 in the endpoint?

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