Skip to content

Crash in Gitea sync task if a host is not contactable #922

@Floppy

Description

@Floppy

With a newly set up dev environment:

  1. rake db:seed
  2. rake repositories:sync_recently_active
  3. 💥

Error message:

Caused by:
Socket::ResolutionError: Failed to open TCP connection to git.*****.:443 (getaddrinfo(3): nodename nor servname provided, or not known) (Socket::ResolutionError)
/Users/james/Source/github.com/ecosyste-ms/repos/app/models/hosts/gitea.rb:96:in 'Hosts::Gitea#load_repo_names'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions