Rank 3: Container
I tried to setup a gitlab CI that push functions from an appwrite.json, tho when doing a first push it fails saying it needs a session.
Tho it does create the function but without a domain.
And if i relaunch the CI, it can deploy without issues.
After looking at the cli sdk i saw that it came from this :
https://github.com/appwrite/sdk-for-cli/blob/master/lib/commands/push.js#L1490
try { const variables = await consoleVariables({ parseOutput: false, sdk: await sdkForConsole() }); domain = ID.unique() + '.' + variables['_APP_DOMAIN_FUNCTIONS'];} catch (error) { console.error('Error fetching console variables.'); throw error;}and i suspect that the sdkForConsole needs a session but the key doesn't have one.
Maybe as a fix, it could be nice to have an option like --no-domain or to just warn instead of completely stop the deployement.