dugway icon indicating copy to clipboard operation
dugway copied to clipboard

Access live data from a store in maintenance mode

Open randomgs opened this issue 11 years ago • 2 comments

Error thrown on dugway server startup while using data from a store in maintenance mode:

/Users/user/.rvm/gems/ruby-2.0.0-p247/gems/dugway/0.8.2/lib/dugway/store.rb:124:in `locale': undefined method `[]' for nil:NilClass (NoMethodError)

Could the terminal ask for a password instead?

randomgs avatar Sep 13 '13 07:09 randomgs

i just came across the same error - works fine as long as the store isn't in maintenance mode before you start it. It can be in maintenance mode after and will work fine

iwednesday avatar Oct 19 '13 23:10 iwednesday

@iwednesday since Dugway uses the public Big Cartel API it won't work for stores under maintenance. Many stores go under maintenance to launch new products, and exposing them in the API/Dugway wouldn't be what they want. The reason it works to put the store in maintenance after is because Dugway caches the data each time the server starts, but it wouldn't work the next time you restarted the Dugway server.

Anyway, we discussed this more in @randomgs previous issue, which is why he made this new feature request to access a store in maintenance mode by passing a password.

mattwigham avatar Oct 21 '13 18:10 mattwigham