Skip to content

Error message is not helpful if huggingface is blocked on a network. #318

Closed

Description

@cryolithic

Attempting to run semble if access to hugging face is blocked results in the error:

Got: ConnectError: [WinError 10054] An existing connection was forcibly closed by the remote host
An error happened while trying to locate the files on the Hub, and we cannot find the appropriate snapshot folder for the specified revision on the local disk. Please check your internet connection and try again.

It took a bit of digging to figure out what was causing this.

Repro steps:
Block access to hugging face domains and cdns with firewall or hosts file.
Run semble from initial setup.

Error prints giving no clue as to what couldn't be connected to. This was especially concerning at first, given that it claims no external services. Thankfully my initial reaction of WTF was without concern as it's just doing a one time fetch of the model.

Activity

  1. Pringled commented on Oct 29, 2026

    @Pringled
    Member

    Hey @cryolithic, thanks for reporting, this is indeed not a very helpful message. I've just improved this in #319 and we'll release this soon.

  2. cryolithic commented on Oct 29, 2026

    @cryolithic
    Author

    Wow fast turn around!

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