Back

Unable to connect to Appwrite

  • 0
  • Self Hosted
  • Functions
  • Locale
Wayne
7 Sep, 2024, 11:26

After running appwrite login --endpoint "REDACTED"

I get this error:

The current SDK is built for Appwrite 1.6.0. However, the current Appwrite server version is 1.5.10. Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks

TL;DR
Developers struggling with connecting to Appwrite server, getting "Invalid endpoint" error when it should be working fine. Downgrade to version 5.0.5 of Appwrite-cli to resolve compatibility issue with the server version 1.5.10. Use 'appwrite login --endpoint "REDACTED"' but confirm SDK version matches server version.
darShan
7 Sep, 2024, 11:27

are you using CLI when you say - appwrite login --endpoint "REDACTED"?

Wayne
7 Sep, 2024, 11:46

yes I've installed the CLI

darShan
7 Sep, 2024, 11:47

Compatible version with 1.5.x is 5.0.5. should be: appwrite-cli:5.0.5

Wayne
7 Sep, 2024, 11:49

ok so I've downgraded to 5.0.5 now I just get "error: unknown option '--endpoint'"

darShan
7 Sep, 2024, 11:53
darShan
7 Sep, 2024, 11:54

there should be a help arg too that lists all the commands.

Wayne
7 Sep, 2024, 11:57

right ok got it, but now I just get "Invalid endpoint or your Appwrite server is not running as expected." which I don't understand as the server is running, accessible and i have managed to get functions running via direct deployment

darShan
7 Sep, 2024, 11:59

whats the endpoint? and whats the url you passed in?

Wayne
7 Sep, 2024, 11:59
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