Back

Session not found

  • 0
  • Web
Streed
16 Feb, 2024, 14:09

Hello, I have asession not found when I do an appwrite init project The version of my appwrite -v is 4.2.1

When I do appwrite login I have a success when I go to the ~/.appwrite folder in my prefs.json I just have my endpoint which is {"endpoint": "https://cloud.appwrite.io/v1"}

Can you help me please ?

TL;DR
Issue: Developer is encountering a "Session not found" error when trying to run the "appwrite init project" command, despite successfully logging in. They are using version 4.2.1 of the Appwrite CLI. Solution: 1. Check the version: Run "appwrite -v" to confirm that the CLI version is indeed 4.2.1. 2. Uninstall and reinstall: Try uninstalling the current version by running "npm uninstall -g appwrite-cli" or "brew remove appwrite" (depending on the installation method), and then install version 4.2.0 using NPM
Binyamin
16 Feb, 2024, 14:30

Try delete the prefs.json

Binyamin
16 Feb, 2024, 14:30

And re-login

Streed
16 Feb, 2024, 14:34

always the same

Binyamin
16 Feb, 2024, 14:36

That's interesting I see that the Client has changed to the latest version How've you installed the Appwrite CLI?

Streed
16 Feb, 2024, 14:38

with brew brew tap appwrite/sdk-for-cli https://github.com/appwrite/sdk-for-cli brew update brew install --HEAD appwrite

Binyamin
16 Feb, 2024, 14:40

Try to uninstall it

TypeScript
brew remove appwrite

And install version 4.2.0

TypeScript
brew install appwrite@4.2.0

Then, try to login

Binyamin
16 Feb, 2024, 14:44

If this doesn't work well try to uninstall it and install version 4.2.0 using NPM

TypeScript
 npm install -g appwrite-cli@4.2.0
Streed
16 Feb, 2024, 14:45

always the same appwrite login ✓ Success appwrite init project Error Session not found. Please run appwrite login to create a session.

Binyamin
16 Feb, 2024, 14:45

And what version you've right now?

Binyamin
16 Feb, 2024, 14:45

In

TypeScript
appwrite -v
Streed
16 Feb, 2024, 14:45

4.2.1

Binyamin
16 Feb, 2024, 14:46

Yes, Then, do this

Streed
16 Feb, 2024, 14:50

it's good thx a lot

Binyamin
16 Feb, 2024, 14:50

Great

Binyamin
16 Feb, 2024, 14:50

👍

Binyamin
16 Feb, 2024, 14:51

It might be good to open an issue on it noting version 4.2.1 was unable to create session As version 4.2.1 changed the client from axios to undici

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