Skip to content

[feat] raise exceptions on all network errors #3372

Description

@psychedelicious

This is not a bug report - please do not ask for updates on a HF outage here. This is a feature request for the diffusers library to change how to handles 50X network issues.

The May 9 HF outage is a known issue. Suggest checking Twitter for status updates https://twitter.com/huggingface or visit HF's discord

Is your feature request related to a problem? Please describe.
There was a minor outage today in which calls to from_pretrained() resulted in 504 and 502 errors.

Instead of raising an exception, a message was logged.

Though the message was helpful, because it did not raise an exception, it was difficult to handle programmatically.

Describe the solution you'd like
All network errors raise exceptions.

Describe alternatives you've considered
I don't think there really is any.

Activity

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