Skip to content

Inconsistent SSL_Error #107

@mleone11

Description

@mleone11

In one of our repositories we can't get past an SSL_Error that seems to happen during the "Associating PRs with tags" step.
This repository is not setup differently from others where the generator succeeds. The .github_changelog_generator file is the same as in the repository where the generator succeeds. The only thing I can think of is that the PR history is much bigger (x3). I even tried playing around with the labels, reducing them down to just breaking change and documentation, with no difference in result:

docker run -it --rm --env CHANGELOG_GITHUB_TOKEN -v "<<project_path>>:/usr/local/src/your-app" githubchangeloggenerator/github-changelog-generator --future-release v2.2.0
Using these options:
:date_format=>"%Y-%m-%d"
:output=>"CHANGELOG.md"
:base=>"HISTORY.md"
:issues=>false
:add_issues_wo_labels=>false
:add_pr_wo_labels=>true
:pulls=>true
:filter_issues_by_milestone=>true
:issues_of_open_milestones=>true
:author=>true
:unreleased=>true
:unreleased_label=>"Unreleased"
:compare_link=>false
:exclude_labels=>["duplicate", "invalid", "wontfix", "skip changelog", "feature", "enhancement", "refactor", "bug", "regression", "security"]
:summary_labels=>["Release summary", "release-summary", "Summary", "summary"]
:breaking_labels=>["breaking change"]
:enhancement_labels=>["feature", "enhancement", "refactor"]
:bug_labels=>["bug", "regression"]
:deprecated_labels=>["deprecated", "Deprecated", "Type: Deprecated"]
:removed_labels=>["removed", "Removed", "Type: Removed"]
:security_labels=>["security"]
:configure_sections=>{}
:add_sections=>"{\"documentation\": {\"prefix\": \"### Documentation\", \"labels\": [\"documentation\"]}}"
:issue_line_labels=>[]
:max_issues=>nil
:simple_list=>false
:ssl_ca_file=>nil
:verbose=>true
:header=>"# Changelog"
:merge_prefix=>"### Merged Pull Requests"
:issue_prefix=>"### Closed Issues"
:summary_prefix=>""
:breaking_prefix=>"### Breaking Changes"
:enhancement_prefix=>"### Features & Enhancements"
:bug_prefix=>"### Bug Fixes"
:deprecated_prefix=>"**Deprecated:**"
:removed_prefix=>"**Removed:**"
:security_prefix=>"### Security"
:http_cache=>true
:require=>[]
:config_file=>".github_changelog_generator"
:future_release=>"v2.2.0"
:user=>"<<user>>"
:project=>"<<repository>>"
:release_branch=>"main"
:since_tag=>"v2.1.0"
:token=>"No token used"

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.
Found 2 tags
Fetching tags dates: 2/2
Sorting tags...
Received issues: 298
Pull Request count: 298
Filtered pull requests: 10
Fetching events for issues and PR: 10
Fetching closed dates for issues: 10/10
    5m    error: Async::Task [oid=0x1860] [ec=0x1874] [pid=1] [2023-12-19 19:44:00 +0000]
               |   Faraday::SSLError: SSL_write: bad length
               |   → /usr/local/lib/ruby/2.7.0/openssl/buffering.rb:383 in `syswrite_nonblock'
               |     /usr/local/lib/ruby/2.7.0/openssl/buffering.rb:383 in `write_nonblock'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/generic.rb:216 in `async_send'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/generic.rb:62 in `block in wrap_blocking_method'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/generic.rb:156 in `write'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/stream.rb:160 in `block in flush'
               |     /usr/local/bundle/gems/async-1.30.1/lib/async/semaphore.rb:80 in `acquire'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/stream.rb:155 in `flush'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/protocol/http2/connection.rb:92 in `write_frames'
               |     /usr/local/bundle/gems/protocol-http2-0.14.2/lib/protocol/http2/stream.rb:159 in `write_headers'
               |     /usr/local/bundle/gems/protocol-http2-0.14.2/lib/protocol/http2/stream.rb:173 in `send_headers'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/protocol/http2/response.rb:204 in `send_request'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/protocol/http2/client.rb:54 in `call'
               |     /usr/local/bundle/gems/protocol-http-0.22.5/lib/protocol/http/request.rb:53 in `call'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/client.rb:143 in `make_response'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/client.rb:106 in `call'
               |     /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:125 in `block (2 levels) in call'
               |     /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:148 in `with_timeout'
               |     /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:124 in `block in call'
               |     /usr/local/bundle/gems/async-1.30.1/lib/kernel/sync.rb:29 in `Sync'
               |     /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:102 in `call'
               |     /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/middleware.rb:18 in `call'
               |     /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:283 in `fetch'
               |     /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:187 in `process'
               |     /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:135 in `call!'
               |     /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:115 in `call'
               |     /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/rack_builder.rb:154 in `build_response'
               |     /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/connection.rb:516 in `run_request'
               |     /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/connection.rb:200 in `get'
               |     /usr/local/bundle/gems/sawyer-0.8.2/lib/sawyer/agent.rb:94 in `call'
               |     /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/connection.rb:156 in `request'
               |     /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/connection.rb:84 in `paginate'
               |     /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/client/issues.rb:259 in `issue_comments'
               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:427 in `block in iterate_pages'
               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:459 in `check_github_response'
               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:427 in `iterate_pages'
               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:252 in `block (3 levels) in fetch_comments_async'
               |     /usr/local/bundle/gems/async-1.30.1/lib/async/semaphore.rb:61 in `block in async'
               |     /usr/local/bundle/gems/async-1.30.1/lib/async/task.rb:260 in `block in make_fiber'
               |   Caused by OpenSSL::SSL::SSLError: SSL_write: bad length
               |   → /usr/local/lib/ruby/2.7.0/openssl/buffering.rb:383 in `syswrite_nonblock'
               |     /usr/local/lib/ruby/2.7.0/openssl/buffering.rb:383 in `write_nonblock'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/generic.rb:216 in `async_send'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/generic.rb:62 in `block in wrap_blocking_method'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/generic.rb:156 in `write'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/stream.rb:160 in `block in flush'
               |     /usr/local/bundle/gems/async-1.30.1/lib/async/semaphore.rb:80 in `acquire'
               |     /usr/local/bundle/gems/async-io-1.32.2/lib/async/io/stream.rb:155 in `flush'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/protocol/http2/connection.rb:92 in `write_frames'
               |     /usr/local/bundle/gems/protocol-http2-0.14.2/lib/protocol/http2/stream.rb:159 in `write_headers'
               |     /usr/local/bundle/gems/protocol-http2-0.14.2/lib/protocol/http2/stream.rb:173 in `send_headers'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/protocol/http2/response.rb:204 in `send_request'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/protocol/http2/client.rb:54 in `call'
               |     /usr/local/bundle/gems/protocol-http-0.22.5/lib/protocol/http/request.rb:53 in `call'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/client.rb:143 in `make_response'
               |     /usr/local/bundle/gems/async-http-0.56.5/lib/async/http/client.rb:106 in `call'
               |     /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:125 in `block (2 levels) in call'
               |     /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:148 in `with_timeout'
               |     /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:124 in `block in call'
               |     /usr/local/bundle/gems/async-1.30.1/lib/kernel/sync.rb:29 in `Sync'
               |     /usr/local/bundle/gems/async-http-faraday-0.11.0/lib/async/http/faraday/adapter.rb:102 in `call'
               |     /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/middleware.rb:18 in `call'
               |     /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:283 in `fetch'
               |     /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:187 in `process'
               |     /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:135 in `call!'
               |     /usr/local/bundle/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:115 in `call'
               |     /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/rack_builder.rb:154 in `build_response'
               |     /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/connection.rb:516 in `run_request'
               |     /usr/local/bundle/gems/faraday-1.7.2/lib/faraday/connection.rb:200 in `get'
               |     /usr/local/bundle/gems/sawyer-0.8.2/lib/sawyer/agent.rb:94 in `call'
               |     /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/connection.rb:156 in `request'
               |     /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/connection.rb:84 in `paginate'
               |     /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/client/issues.rb:259 in `issue_comments'
               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:427 in `block in iterate_pages'
               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:459 in `check_github_response'
               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:427 in `iterate_pages'
               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:252 in `block (3 levels) in fetch_comments_async'
               |     /usr/local/bundle/gems/async-1.30.1/lib/async/semaphore.rb:61 in `block in async'
               |     /usr/local/bundle/gems/async-1.30.1/lib/async/task.rb:260 in `block in make_fiber'
Traceback (most recent call last):
        5: from /usr/local/bundle/gems/async-1.30.1/lib/async/task.rb:260:in `block in make_fiber'
        4: from /usr/local/bundle/gems/async-1.30.1/lib/async/semaphore.rb:61:in `block in async'
        3: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:252:in `block (3 levels) in fetch_comments_async'
        2: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:432:in `iterate_pages'
        1: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:253:in `block (4 levels) in fetch_comments_async'
/usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:253:in `concat': no implicit conversion of nil into Array (TypeError)

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