Rank 4: Virtual Machine
When trying to push functions from Gitlab CI (with an API KEY and using the CLI), i saw that i was unable to push functions.
$ appwrite client --endpoint $APPWRITE_ENDPOINT --project-id $APPWRITE_PROJECT_ID --key $APPWRITE_API_KEY
✓ Success: Client configuration updated
$ appwrite push functions --function-id $APPWRITE_FUNCTION_ID --force --activate true
ℹ Info: Validating functions ...
ℹ Info: Checking for changes ...
ℹ Info: Pushing functions ...
ℹ Info: For detailed error pass the --verbose or --report flag
✗ Error: Session not found. Please run `appwrite login` to create a session
Is it something that you stopped supporing or is it a bug ?
Looking at the code, it seams like the push function uses the ConsoleService for checking proxies rules :
- https://github.com/appwrite/sdk-for-cli/blob/22.3.0/lib/commands/push.ts#L827
- https://github.com/appwrite/sdk-for-cli/blob/master/lib/commands/init.ts#L388
- https://github.com/appwrite/sdk-for-cli/blob/master/lib/sdks.ts#L89
which means the SDK for console haverequireAuthtotrueand so require either an access token OR a cookie.