Skip to content

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

Description

@gunvantsr

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)

Activity

  1. obiwankennedy commented on Jan 15, 2022

    @obiwankennedy

    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.

  2. pavellishin commented on Feb 27, 2022

    @pavellishin

    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!

  3. pavellishin commented on Feb 27, 2022

    @pavellishin

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

  4. cooljeanius commented on Nov 19, 2022

    @cooljeanius

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions