Session not found. Please run appwrite login to create a session
- 0
- 4
- Web
- Tools
- Auth
- Cloud
- Functions
I have encounter an issue with appwrite CLI
They asking for a login session but in the doc, itโs mention that only setup client with endpoint / api key is enough
So I dont understand why I have this issue
https://github.com/appwrite/appwrite/issues/11162
With the CLI in version 12 I have rules issue, with the new one in version 13 I have this login issue
How do you deals your github action with appwrite CLI ?
I just want to push update like functions when I push code
Any help please ๐
Just to mention, that if i'm working with appwrite cli version 12, i get this role error : https://discord.com/channels/564160730845151244/1318750327457058846
but no answer on it too
<@743532656767270934> Would you have any insight on what could be going wrong with the CLI?
The story, is that with the v12 of the cli, i get the error message with
Error: eException [Error]: app.68dbaefe0018a2746cb8@service.fra.cloud.appwrite.io (role: applications) missing scopes (["rules.read"])
The v13 is new, i've update to this version, and now, i get the error message about the session login The api key is the same, i have change nothing, just update the version
So the v12 is "working" but i get a lot of error message The v13 is not working =/
another issue related is this one i've found: https://discord.com/channels/564160730845151244/1318750327457058846 but December 2024 ๐
thanks <@186656408450629633> for you help
From my understanding Chirag did a pretty big refactor of the cli recently, so it could be a sideeffect of that
it's my supposition to, so why i've open this issue, but i'm surprised that no one else have encourter this issue i'm doing something pretty normal, push a function with my CI/CD ^^'
<@407146267341357057> looks like the client's methods to set a session or key via the cli might have been regressed during the refactor, i am moving your issue to the cli sdk and work on it the asap, thanks for bringing this up
love to read that, if i can help or give you other feedback on it don't hesitate
Like we say in french "bon courage" โบ๏ธ
CLI in version 12 I have rules issue
would love a seperate ticket on this if you can create it
I suppose this ticket is still relevant for the v12
ah this, it might be intentional since ability to create domains (aka rules) is console only for now
that lead to a lot of error when we use cli to push function for example. That works at the end, but in the CI/CD is not fine ^^'
pr for the fix is in review now - https://github.com/appwrite/sdk-generator/pull/1312
Anwesome ! ๐๐
When do you think the new version will be available with this fix ?
should be soon, since a lot of other changes were also merged we cant make a direct patch release for this fix and need to test all the changes thoroughly
if you are comfortable using a rc version you can do that too!
Thanks i will try to test it !
Hey ๐ just a few feedback, i've test the rc and it's working, i didn't have the session issue, thanks โ๏ธ
But now the other issue mentionned earlier is always present, missing scopes (["rules.read"])
AppwriteException: app.68dbaefe0018a2746cb8@service.fra.cloud.appwrite.io (role: applications) missing scopes (["rules.read"])
at _Client.<anonymous> (/opt/hostedtoolcache/node/22.22.0/x64/lib/node_modules/appwrite-cli/dist/cli.cjs:110479:15)
at Generator.next (<anonymous>)
at fulfilled (/opt/hostedtoolcache/node/22.22.0/x64/lib/node_modules/appwrite-cli/dist/cli.cjs:109834:24)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 401,
type: 'general_unauthorized_scope',
response: '{"message":"app.68dbaefe0018a2746cb8@service.fra.cloud.appwrite.io (role: applications) missing scopes ([\\"rules.read\\"])","code":401,"type":"general_unauthorized_scope","version":"1.8.1"}'
}
rules scope is not available to apikey for now
you will need to login via a valid session
Recommended threads
- [1.9.5] Google OAuth do not work anymore
After migrating to 1.8.1 to 1.9.0 then 1.9.5 and login through Google I get on Flutter app "Missing redirect URL" "Your OAuth login flow is missing a proper re...
- How to successfully migrate from 1.9.0 t...
I've tried the automatic tool for migration but my Appwrite (self-hosted) went to a broken state. My functions wouldn't deploy anymore, some things just didn't ...
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126