ruby / ruby/net-http

FrozenError

Open
#56 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
148
Forks
95
Avg merge
10h 54m
Merged PRs (30d)
4

Description

I installed net-http gem , later it raised this error several times:

FrozenError
can't modify frozen OpenSSL::SSL::SSLContext: #<OpenSSL::SSL::SSLContext:0x000055c8b02c7a30 @verify_mode=1, @cert_store=#<OpenSSL::X509::Store:0x000055c8a6f05748 @verify_callback=nil, @error=nil, @error_string=nil, @chain=nil, @time=nil>, @verify_hostname=true, @max_proto_version=nil, @min_proto_version=769, @session_new_cb=#<Proc:0x000055c8b02bb2d0 /usr/local/bundle/gems/net-http-0.2.0/lib/net/http.rb:1030>>

Rails 7.0.1

ruby 2.7.5

net-http 0.2.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the FrozenError with Rails 7.0.1, Ruby 2.7.5, and net-http 0.2.0, then inspect net/http.rb around line 1030 and the SSLContext setup. Trace which operation attempts to modify the frozen context. Done means the cause is confirmed and the behavior has a verified resolution or regression coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.