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 ?
Summary
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
Rank 7: Quantum Computer
Feb 16, 2024, 14:30
Try delete the prefs.json
Binyamin
Feb 16, 2024, 14:30
And re-login
Streed
Web Developer
Feb 16, 2024, 14:34
always the same
Binyamin
Feb 16, 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
Web Developer
Feb 16, 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
Feb 16, 2024, 14:40
Try to uninstall it
brew remove appwrite
And install version 4.2.0
brew install appwrite@4.2.0
Then, try to login
Binyamin
Feb 16, 2024, 14:44
If this doesn't work well try to uninstall it and install version 4.2.0 using NPM
npm install -g appwrite-cli@4.2.0
Streed
Web Developer
Feb 16, 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
Feb 16, 2024, 14:45
And what version you've right now?
Binyamin
Feb 16, 2024, 14:45
In
appwrite -v
Streed
Web Developer
Feb 16, 2024, 14:45
4.2.1
Binyamin
Feb 16, 2024, 14:46
Yes,
Then, do this
Streed
Web Developer
Feb 16, 2024, 14:50
it's good thx a lot
Binyamin
Feb 16, 2024, 14:50
Great
Binyamin
Feb 16, 2024, 14:50
👍
Binyamin
Feb 16, 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