Skip to content
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

`force_encoding': can't modify frozen String: "" (FrozenError) #452

Closed
gunvantsr opened this issue Nov 23, 2021 · 4 comments
Closed

`force_encoding': can't modify frozen String: "" (FrozenError) #452

gunvantsr opened this issue Nov 23, 2021 · 4 comments

Comments

@gunvantsr
Copy link

gunvantsr commented Nov 23, 2021

Hi everyone,

i'm trying to setup t on my ubuntu 20.04 system. I'm using ruby 2.7.0 version.

here is my error log. could someone please help out?

```t list create following-date "+%Y-%m-%d"
Traceback (most recent call last):
20: from /usr/local/bin/t:23:in `

'
19: from /usr/local/bin/t:23:in `load'
18: from /var/lib/gems/2.7.0/gems/t-3.1.0/bin/t:20:in `<top (required)>'
17: from /var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
16: from /var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
15: from /var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
14: from /var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
13: from /var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:243:in `block in subcommand'
12: from /var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:116:in `invoke'
11: from /var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
10: from /var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
9: from /var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
8: from /var/lib/gems/2.7.0/gems/t-3.1.0/lib/t/list.rb:46:in `create'
7: from /var/lib/gems/2.7.0/gems/twitter-6.2.0/lib/twitter/rest/lists.rb:328:in `create_list'
6: from /var/lib/gems/2.7.0/gems/twitter-6.2.0/lib/twitter/rest/utils.rb:64:in `perform_post_with_object'
5: from /var/lib/gems/2.7.0/gems/twitter-6.2.0/lib/twitter/rest/utils.rb:72:in `perform_request_with_object'
4: from /var/lib/gems/2.7.0/gems/twitter-6.2.0/lib/twitter/rest/utils.rb:50:in `perform_request'
3: from /var/lib/gems/2.7.0/gems/twitter-6.2.0/lib/twitter/rest/request.rb:37:in `perform'
2: from /usr/lib/ruby/2.7.0/forwardable.rb:229:in `empty?'
1: from /var/lib/gems/2.7.0/gems/http-3.3.0/lib/http/response/body.rb:52:in `to_s'
/var/lib/gems/2.7.0/gems/http-3.3.0/lib/http/response/body.rb:52:in `force_encoding': can't modify frozen String: "" (FrozenError)

@obiwankennedy
Copy link

Hello in order to fix this issue. I modify the file body.rb from http as this commit:

httprb/http@2df5e46
It seems enough to make t work again. I'm not familiar to ruby app. So, I believe there is a way to install an updated version of http but I don't know how.

@pavellishin
Copy link

Hello in order to fix this issue. I modify the file body.rb from http as this commit:

httprb/http@2df5e46 It seems enough to make t work again. I'm not familiar to ruby app. So, I believe there is a way to install an updated version of http but I don't know how.

Where does that file live, locally? I know almost nothing about ruby, so I'd love to do this, but I don't know how!

@pavellishin
Copy link

Ah, looks like it's in /usr/local/lib/ruby/gems/3.1.0/gems/http-3.3.0/lib/http/response/body.rb.

@cooljeanius
Copy link

oh hey I just managed to update t and am now getting this issue too... tweets still post despite the error message, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants