Skip to content

Generator can not be used due to Faraday::ConnectionFailed #1027

Open
@iajoiner

Description

@iajoiner

Describe the bug
A clear and concise description of what the bug is.
I can not use the generator due to Faraday::ConnectionFailed.
To Reproduce

You can go to either arrow-rs or delta-rs repo and try to run the generator using dev/release/update_change_log.sh.

One example is to run the following from the root of delta-rs:

docker run -it --rm -e CHANGELOG_GITHUB_TOKEN=<YOUR_GITHUB_API_TOKEN>     -v <YOUR_DELTA_RS_ROOT_PATH>:/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator     --user delta-io     --project delta-rs     --cache-file=.githubchangeloggenerator.cache     --cache-log=.githubchangeloggenerator.cache.log     --http-cache     --max-issues=300     --exclude-labels dependencies     --exclude-tags-regex .*python.*     --since-tag rust-v0.7.0     --future-release rust-v0.8.0

Expected behavior
A new changelog should be generated

Screenshots
If applicable, add screenshots to help explain your problem.
Ubuntu 22.04

WARNING: `Faraday::Connection#authorization` is deprecated; it will be removed in version 2.0.
While initializing your connection, use `#request(:authorization, ...)` instead.
See https://lostisland.github.io/faraday/middleware/authentication for more usage info.
Traceback (most recent call last):
	40: from /usr/local/bundle/gems/async-1.30.1/lib/async/task.rb:260:in `block in make_fiber'
	39: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:54:in `block in compound_changelog'
	38: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator_tags.rb:10:in `fetch_and_filter_tags'
	37: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:101:in `get_all_tags'
	36: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:459:in `check_github_response'
	35: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:101:in `block in get_all_tags'
	34: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:131:in `github_fetch_tags'
	33: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:112:in `calculate_pages'
	32: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:459:in `check_github_response'
	31: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:113:in `block in calculate_pages'
	30: from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/client/repositories.rb:552:in `tags'
	29: from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/connection.rb:84:in `paginate'
	28: from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/connection.rb:156:in `request'
	27: from /usr/local/bundle/gems/sawyer-0.8.2/lib/sawyer/agent.rb:94:in `call'
	26: from /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/connection.rb:200:in `get'
	25: from /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/connection.rb:516:in `run_request'
	24: from /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/rack_builder.rb:154:in `build_response'
	23: from /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:115:in `call'
	22: from /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:135:in `call!'
	21: from /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:194:in `process'
	20: from /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:216:in `validate'
	19: from /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/middleware.rb:18:in `call'
	18: from /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:102:in `call'
	17: from /usr/local/bundle/gems/async-1.30.1/lib/kernel/sync.rb:29:in `Sync'
	16: from /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:124:in `block in call'
	15: from /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:148:in `with_timeout'
	14: from /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:125:in `block (2 levels) in call'
	13: from /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/client.rb:104:in `call'
	12: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:88:in `acquire'
	11: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:240:in `wait_for_resource'
	10: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:274:in `available_resource'
	 9: from /usr/local/bundle/gems/async-1.30.1/lib/async/semaphore.rb:80:in `acquire'
	 8: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:275:in `block in available_resource'
	 7: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:309:in `get_resource'
	 6: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:258:in `create_resource'
	 5: from /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/client.rb:157:in `block in make_pool'
	 4: from /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/endpoint.rb:201:in `connect'
	 3: from /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/ssl_endpoint.rb:92:in `connect'
	 2: from /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/host_endpoint.rb:57:in `connect'
	 1: from /usr/local/lib/ruby/2.7.0/socket.rb:227:in `foreach'
/usr/local/lib/ruby/2.7.0/socket.rb:227:in `getaddrinfo': getaddrinfo: Try again (SocketError)
	40: from /usr/local/bundle/gems/async-1.30.1/lib/async/task.rb:260:in `block in make_fiber'
	39: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:54:in `block in compound_changelog'
	38: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator_tags.rb:10:in `fetch_and_filter_tags'
	37: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:101:in `get_all_tags'
	36: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:459:in `check_github_response'
	35: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:101:in `block in get_all_tags'
	34: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:131:in `github_fetch_tags'
	33: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:112:in `calculate_pages'
	32: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:459:in `check_github_response'
	31: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:113:in `block in calculate_pages'
	30: from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/client/repositories.rb:552:in `tags'
	29: from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/connection.rb:84:in `paginate'
	28: from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/connection.rb:156:in `request'
	27: from /usr/local/bundle/gems/sawyer-0.8.2/lib/sawyer/agent.rb:94:in `call'
	26: from /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/connection.rb:200:in `get'
	25: from /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/connection.rb:516:in `run_request'
	24: from /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/rack_builder.rb:154:in `build_response'
	23: from /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:115:in `call'
	22: from /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:135:in `call!'
	21: from /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:194:in `process'
	20: from /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:216:in `validate'
	19: from /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/middleware.rb:18:in `call'
	18: from /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:102:in `call'
	17: from /usr/local/bundle/gems/async-1.30.1/lib/kernel/sync.rb:29:in `Sync'
	16: from /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:124:in `block in call'
	15: from /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:148:in `with_timeout'
	14: from /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:125:in `block (2 levels) in call'
	13: from /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/client.rb:104:in `call'
	12: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:88:in `acquire'
	11: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:240:in `wait_for_resource'
	10: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:274:in `available_resource'
	 9: from /usr/local/bundle/gems/async-1.30.1/lib/async/semaphore.rb:80:in `acquire'
	 8: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:275:in `block in available_resource'
	 7: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:309:in `get_resource'
	 6: from /usr/local/bundle/gems/async-pool-0.3.8/lib/async/pool/controller.rb:258:in `create_resource'
	 5: from /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/client.rb:157:in `block in make_pool'
	 4: from /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/endpoint.rb:201:in `connect'
	 3: from /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/ssl_endpoint.rb:92:in `connect'
	 2: from /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/host_endpoint.rb:57:in `connect'
	 1: from /usr/local/lib/ruby/2.7.0/socket.rb:227:in `foreach'
/usr/local/lib/ruby/2.7.0/socket.rb:227:in `getaddrinfo': getaddrinfo: Try again (Faraday::ConnectionFailed)

Additional context
This is a problem that didn't exist in the past and the last time it worked was 2 weeks ago.

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