Skip to content

appwrite push functions reports success on failure #15507

Open

Description

@irishismyname

👟 Reproduction steps

  1. Create a function
  2. Try to use an API key that doesn't have the right scope to push it
  3. Try to push it: appwrite function push

👍 Expected behavior

It seems like this should return a non-zero exit code to make detection of failures simple. Something like a --strict option would be nice here. If --all is used, it could be --fail-fast to stop after the first failure or --fail-at-end to attempt to push the remaining functions before reporting an error.

👎 Actual Behavior

Console output indicates an error like:

· GET /v1/functions/my-function 200 in 114ms
✗ Error: Failed to push function My Function: An API key cannot grant scopes it does not hold.
✗ Error: No functions were pushed.
· PUT /v1/functions/my-function 401 in 52ms

but the process still exits with a 0 exit code. In my experience this has required all kinds of craziness in CI jobs to read through stdout/stderr to look for a problem and bubble it up.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    product / functions
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

product / functions

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions