jnbt / candy_check

Check and verify in-app receipts
MIT License
125 stars 71 forks source link

Problem with Google APIs #61

Closed andyjamesduncan closed 1 year ago

andyjamesduncan commented 3 years ago

I have installed candy_check and added the following to my Gemfile:

gem 'candy_check'

I have then run 'bundle install, with no problem.

But when I run my rails server in development, I keep getting this error:

`require': cannot load such file -- google/api_client (LoadError)

I have tried as many solutions as I could find on Stack Overflow and elsewhere, such as adding the following the my Gemfile:

gem 'google-api-client', require: 'google/apis' gem 'candy_check'

But none of these many solutions has worked. Can you help me out and tell me how I can get candy_check to work, as it otherwise looks perfect for my purposes. I have pasted the full error message, below:

$ rails s -p 5000 -b 0.0.0.0

Traceback (most recent call last): 29: from bin/rails:4:in <main>' 28: from bin/rails:4:inrequire' 27: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands.rb:18:in <top (required)>' 26: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/command.rb:46:ininvoke' 25: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/command/base.rb:65:in perform' 24: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/thor-1.0.1/lib/thor.rb:392:indispatch' 23: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command' 22: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/thor-1.0.1/lib/thor/command.rb:27:inrun' 21: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in perform' 20: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:intap' 19: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:145:in block in perform' 18: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:145:inrequire' 17: from /Users/homeuser/develop/ruby/json/json_fin_ruby/config/application.rb:16:in <top (required)>' 16: from /Users/homeuser/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler.rb:114:inrequire' 15: from /Users/homeuser/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/runtime.rb:65:in require' 14: from /Users/homeuser/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/runtime.rb:65:ineach' 13: from /Users/homeuser/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/runtime.rb:76:in block in require' 12: from /Users/homeuser/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/runtime.rb:76:ineach' 11: from /Users/homeuser/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/runtime.rb:81:in block (2 levels) in require' 10: from /Users/homeuser/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/bundler/runtime.rb:81:inrequire' 9: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/candy_check-0.0.1/lib/candy_check.rb:4:in <top (required)>' 8: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire' 7: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 6: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inblock in require' 5: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require' 4: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/candy_check-0.0.1/lib/candy_check/play_store.rb:1:in<top (required)>' 3: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require' 2: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:inload_dependency' 1: from /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in block in require' /Users/homeuser/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire': cannot load such file -- google/api_client (LoadError)

devchris commented 3 years ago

Same ✋

mehul1997 commented 2 years ago

Same

dolarsrg commented 2 years ago

Here you have a fix: https://github.com/jnbt/candy_check/pull/65

jnbt commented 1 year ago

Released as 0.4.0 but is also part of todays release 0.5.0