PoGoBag icon indicating copy to clipboard operation
PoGoBag copied to clipboard

wrong number of arguments (given 2, expected 3)

Open amandachew33 opened this issue 8 years ago • 4 comments

I'm having trouble logging in via the Google Authorization method -- after a fresh install, I'm getting the following error:

ArgumentError in SessionsController#create wrong number of arguments (given 2, expected 3)

screen shot 2016-08-13 at 12 03 37 am

I think this may have something to do with an update to the way Google Authenticates and it's now accepting a third argument. Any thoughts on a quick fix to this? Thanks!

amandachew33 avatar Aug 13 '16 07:08 amandachew33

I tried implementing a solution mentioned in #24 (which is why there are commented out lines in the screenshot) but it gave me an error of "Invalid user/password combination"

When I tried adding a their argument to the highlighted in red line "google =" then it returns this error: undefined method `upcase' for nil:NilClass

So not sure how to work around this!

amandachew33 avatar Aug 13 '16 07:08 amandachew33

I am getting the same error. Running ubuntu.

Any updates?

naeem-bvg avatar Aug 14 '16 14:08 naeem-bvg

I actually already made a thread for this issue.. I think it might have something to do with the version of ruby you are using. The first time i installed this app i had ruby already installed at the newest version. i had to install the version that the tutorial calls for (ruby 2.2) and then it started working right. What i did was uninstall everything ruby and rails related, then reinstall following the tutorial again, and using ruby 2.2. made sure to add everything to my Path variable and it just worked that time.... still cannot get whenever -w to work though

AeonSaber avatar Aug 16 '16 16:08 AeonSaber

Change poke-api line in Gemfile to:

gem 'poke-go-api',
  git: "https://github.com/nabeelamjad/poke-api.git",
  tag: '0.1.0'

I believe this happens because of updates to the poke-api.

dphuang2 avatar Aug 16 '16 16:08 dphuang2