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 `swift_token=' for LiquorCabinet:Class #107

Closed
gregkare opened this issue Feb 2, 2018 · 0 comments
Closed

Comments

@gregkare
Copy link
Member

gregkare commented Feb 2, 2018

This is a strange one, happened on one request. I don't understand it: it's the line that's reading the token file and setting it on the settings

https://sentry.io/5apps/liquor-cabinet/issues/447643309/

NoMethodError: undefined method `swift_token=' for LiquorCabinet:Class
  remote_storage/swift.rb:462:in `reload_swift_token'
    settings.swift_token           = File.read(swift_token_path).rstrip
  remote_storage/swift.rb:472:in `swift_token'
    reload_swift_token if Time.now - settings.swift_token_loaded_at > 1800
  remote_storage/swift.rb:417:in `default_headers'
    {"x-auth-token" => swift_token}
  remote_storage/swift.rb:428:in `block in do_get_request'
    RestClient.get(url, default_headers, &block)
  remote_storage/swift.rb:479:in `deal_with_unauthorized_requests'
    block.call
...
(38 additional frame(s) were not displayed)

NoMethodError: undefined method `swift_token=' for LiquorCabinet:Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants