Skip to content

collection.exists() returns false when unauthenticated or unauthorized #1799

Closed

Description

@DanielJanicek

collection.exists() catches all exceptions and uses that to determine if a collection exists or not. This means that if an exception other than "collection not found" is raised, the api will simply return false.

In some case like unauthorized access, or another connection error this can be misleading and imply that a collection does not exist, when the collection does exist and the user either doesn't have access or some other error(like a network issue) cause the access to fail.

I think ideally this except block should only catch "collection-not-found" style errors and allow the other errors to bubble up to the user.

Activity

  1. dirkkul commented on Nov 11, 2025

    @dirkkul
    Collaborator

    Pretty sure this was not fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions