-
Notifications
You must be signed in to change notification settings - Fork 150
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
Removing Net::NTLM::EncodeUtil and using Net::NTLM insteand #103
Conversation
@tandrieu Travis is reporting some errors on spec. https://travis-ci.org/savonrb/httpi/jobs/13916124
Can be some "bundler" problem? Thanks. |
@rogerleite Here is the issue i got when trying to authenticate NameError: uninitialized constant Net::NTLM::EncodeUtil
from /Users/totibus/.rvm/gems/ruby-2.0.0-p247/gems/httpi-2.1.0/lib/httpi/adapter/net_http.rb:113:in `negotiate_ntlm_auth'
from /Users/totibus/.rvm/gems/ruby-2.0.0-p247/gems/httpi-2.1.0/lib/httpi/adapter/net_http.rb:67:in `block in do_request'
from /Users/totibus/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:852:in `start'
from /Users/totibus/.rvm/gems/ruby-2.0.0-p247/gems/httpi-2.1.0/lib/httpi/adapter/net_http.rb:66:in `do_request'
from /Users/totibus/.rvm/gems/ruby-2.0.0-p247/gems/httpi-2.1.0/lib/httpi/adapter/net_http.rb:33:in `request'
from /Users/totibus/.rvm/gems/ruby-2.0.0-p247/gems/httpi-2.1.0/lib/httpi.rb:140:in `request'
from /Users/totibus/.rvm/gems/ruby-2.0.0-p247/gems/httpi-2.1.0/lib/httpi.rb:106:in `get'
from (irb):10
from /Users/totibus/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands/console.rb:90:in `start'
from /Users/totibus/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands/console.rb:9:in `start'
from /Users/totibus/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:64:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>' I'm investigating the errors. |
Exceptions like Good luck! |
cat Gemfile.lock| grep rubyntlm
rubyntlm (~> 0.3.2)
rubyntlm (0.3.4) I'm on a mac. |
|
Finaly found the solution. There was Mechanize gem in the stack wich require ntlm-http gem. |
This kind of errors are hard to find, great job! |
Thanks ;) |
Net::NTLM::EncodeUtil is not defined in the httpi gem.
This commit fixes a crash when attempting to make NTLM authentication.