-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FrozenError on Ruby 3.0.0 #640
Comments
Seems to already be fixed in 4.4.1. Closing issue. |
troysurrett
pushed a commit
to troysurrett/brightcove-cmsapi
that referenced
this issue
Jan 17, 2022
When consuming this gem in my application, I would sometimes get errors like this: FrozenError: can't modify frozen String: "" File /app/vendor/bundle/ruby/2.7.0/gems/http-2.2.2/lib/http/response/body.rb line 57 in force_encoding File /app/vendor/bundle/ruby/2.7.0/gems/http-2.2.2/lib/http/response/body.rb line 57 in to_s File /app/vendor/ruby-2.7.4/lib/ruby/2.7.0/forwardable.rb line 235 in to_s This seems to happen when the response body is empty. Researching the issue leads me to this Github Issue page for the http gem: httprb/http#640 Which indicates that this is indeed a bug with the 2.2.2 release of the http gem, and there is no fix for it other than to upgrade to the 4.4.1 release. I have been able to use the brightcove-cmsapi gem with the 4.4.1 version of the http gem so far without issue.
This was referenced Dec 16, 2022
bunnymatic
pushed a commit
to rcode5/dropbox-sdk-ruby
that referenced
this issue
Mar 10, 2024
problem ------ http lib had a problem. httprb/http#640 solution ------ upgrade http and webmock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http gem 3.3.0 running on Ruby 3.0.0 seems to be causing
FrozenError: can't modify frozen String: ""
exception in the following case:I was checking the reason for this error and it sseems to be caused by the following lines:
https://github.com/httprb/http/blob/3-x-stable/lib/http/response/body.rb#L52
Also same pattern repeats in master so I believe that is also affected (but did not test):
http/lib/http/response/body.rb
Line 51 in f4fb336
The text was updated successfully, but these errors were encountered: