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

NoMethodError: undefined method `empty?' for nil:NilClass #87

Closed
gregkare opened this issue Jul 20, 2016 · 2 comments
Closed

NoMethodError: undefined method `empty?' for nil:NilClass #87

gregkare opened this issue Jul 20, 2016 · 2 comments
Assignees

Comments

@gregkare
Copy link
Member

https://app.getsentry.com/5apps/liquor-cabinet/issues/143871850/

NoMethodError: undefined method `empty?' for nil:NilClass
  remote_storage/swift.rb:27:in `authorize_request'
    server.halt 401, "Unauthorized" if token.empty?
  /var/www/liquor-cabinet/releases/3fafac0d2d322c13f1a864954cd831fb1361d4c9/liquor-cabinet.rb:82:in `block (2 levels) in <class:LiquorCabinet>'
    storage.authorize_request(@user, @directory, token, no_key) unless request.options?
  sinatra/base.rb:1611:in `call'
    proc { |a,p| unbound_method.bind(a).call }
  sinatra/base.rb:1611:in `block in compile!'
    proc { |a,p| unbound_method.bind(a).call }
  sinatra/base.rb:1015:in `[]'
    block ? block[self, values] : yield(self, values)
...
(30 additional frame(s) were not displayed)

NoMethodError: undefined method `empty?' for nil:NilClass
@gregkare gregkare self-assigned this Jul 20, 2016
@raucao
Copy link
Member

raucao commented Jul 20, 2016

Could be from one of the countless timeouts to Redis.

@galfert
Copy link
Member

galfert commented Aug 5, 2016

This has been fixed by #88

@galfert galfert closed this as completed Aug 5, 2016
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