Skip to content

Octoprint API exception handling #49

@FlorianJa

Description

@FlorianJa

If the API key is not provided or incorrect, the API call will return 403 Forbidden. Currently, there are functions which do not handle the exception correctly. For example GetFileInfosInFolderAsync in OctoprintFileOperation.cs is only handling the 404 not found exception.
Add correct exception handling or forward the exception until it can be handle in a proper way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions