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

Error after entering API Key and API Secret Key #451

Open
codeinred opened this issue Oct 12, 2021 · 2 comments
Open

Error after entering API Key and API Secret Key #451

codeinred opened this issue Oct 12, 2021 · 2 comments

Comments

@codeinred
Copy link

codeinred commented Oct 12, 2021

Hi everyone,

I installed the cli client and created a twitter app. I enabled read, write, and direct message permissions for the twitter app. When I try to authorize it, I get the following error message. I've provided the output below, with the keys redacted.

Is there anything I can do to get around this?

application with Twitter. Just follow the steps below:
  1. Sign in to the Twitter Application Management site and click
     "Create New App".
  2. Complete the required fields and submit the form.
     Note: Your application must have a unique name.
  3. Go to the Permissions tab of your application, and change the
     Access setting to "Read, Write and Access direct messages".
  4. Go to the Keys and Access Tokens tab to view the consumer key
     and secret which you'll need to copy and paste below when
     prompted.

Press [Enter] to open the Twitter Developer site. 

Enter your API key: [redacted]
Enter your API secret: [redacted]
/home/alecto/.local/share/gem/ruby/3.0.0/gems/t-3.1.0/lib/t/cli.rb:82:in `authorize': uninitialized constant Twitter::REST::Client::BASE_URL (NameError)
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/t-3.1.0/bin/t:20:in `<top (required)>'
	from /home/alecto/.local/share/gem/ruby/3.0.0/bin/t:23:in `load'
	from /home/alecto/.local/share/gem/ruby/3.0.0/bin/t:23:in `<main>'
@shuuji3
Copy link

shuuji3 commented Oct 17, 2021

I think this is the same issue as #402.

@AntZoo
Copy link

AntZoo commented Nov 2, 2021

This solution works perfectly.

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

No branches or pull requests

3 participants