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

Getting NoMethodError (undefined method `new' for nil:NilClass) #96

Open
kglns opened this issue May 15, 2020 · 1 comment
Open

Getting NoMethodError (undefined method `new' for nil:NilClass) #96

kglns opened this issue May 15, 2020 · 1 comment

Comments

@kglns
Copy link

kglns commented May 15, 2020

Hello,

I am getting below error when I call Redd.it

I tried 2 versions, both of which produced the same issue.

Versions
0.8.8
0.7.10

>> reddit = Redd.it(
user_agent: 'xxxx',
         client_id: 'xxxx',
         secret: 'xxx',
         username: 'xxx',
         password: 'xxx'
>>  )
Traceback (most recent call last):
        2: from (irb):4
        1: from (irb):4:in `rescue in irb_binding'
NoMethodError (undefined method `new' for nil:NilClass)

@drice89
Copy link

drice89 commented Jul 23, 2020

Im getting the same thing

edit: My problem was that I was using 0.7.10 and that has a different .it method.

When I tried to update to 0.8.8 I had a conflict with the gem spec for HTTP. I forked the repo and modified the gem spec so the the http version was >= 3.0 and I stopped having the problem. I am not sure this repo is being supported anymore so you may be better off just forking the repo and trying some things out to see if it solves your problem.

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

2 participants