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

Figure out What to Do when Authenticate Gets an HTTP Unauthorized #14

Open
josephholsten opened this issue Nov 15, 2010 · 0 comments
Open

Comments

@josephholsten
Copy link
Owner

We shouldn't complain about not having a www-authenticate header when we get an unauthorized. But what should we do?

From this issue in hoptoad: http://mobicentric.hoptoadapp.com/errors/2351479

Error Message: RuntimeError: Missing required header 'www-authenticate'. Got: #Net::HTTPUnauthorized:0x2ad9a2df8170

Where: lib/rets4r/auth.rb, line 8

Backtrace Summary:

.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/auth.rb:8:in `authenticate'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client/requester.rb:120:in `request'
/usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:543:in `start'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client/requester.rb:77:in `request'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client.rb:461:in `request'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client.rb:251:in `logout'
.bundle/gems/ruby/1.8/bundler/gems/rets4r-1ef13955a443/lib/rets4r/client.rb:238:in `login'
lib/rets_service/listing_object_collection.rb:16:in `each'
lib/ntreis/object_service.rb:6:in `map'
lib/ntreis/object_service.rb:6:in `all_by_listing'
lib/job/photo_object_sync.rb:5:in `perform_without_newrelic_transaction_trace'
(eval):3:in `perform'
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

1 participant