-
Notifications
You must be signed in to change notification settings - Fork 616
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
Savon >= 0.8.6 not playing nicely with HTTPI >= v0.9.0? #163
Comments
I'm getting the same error. |
I have been ripping my hair out over this problem for the last two days. Rolling httpi back to 0.7.9 also solved it for me. |
Seems to me, the problem is with HTTPI, rather than Savon. The httpi 0.8.0 issue has been bug reported here: https://github.com/rubiii/httpi/issues/closed#issue/22 I have filed this bug under httpi |
thanks for reporting this. please try httpi v0.9.1 and let me know if it fixes the problem. |
httpi v0.9.1 solves the problem |
that's great. thank you! |
Still seeing this error on httpi 0.9.1 and 0.9.2 - downgraded to 0.7.9 as suggested and it works fine. Exact same call stack as OP. Affected: savon 0.9.1 + httpi (0.9.2, 0.9.1) (net/http) |
For me as well, the error still exists using httpi 0.9.1 |
are you guys using ntlm? |
not using ntlm anything |
I'm also not using ntlm. |
Was this issue resolved? Still having problem with with httpi-0.9.2 |
unfortunately not. i was able to reproduce the problem using httpi v0.9.0 on ruby 1.9.2, but (at least for me) both v0.9.1 and v0.9.2 don't seem to be affected. don't ask me why that is. somehow net/http just doesn't return a response object. for now i'd suggest switching to a different http client like httpclient or curb via: HTTPI::Adapter.use = :curb # or one of [:httpclient, :net_http] |
Yes, if you have "httpclient" gem installed then the bug goes away. I suspect it is net_http bug. |
Confirmed :
solved the issue on 0.9.1. |
FWIW I had the same problem with savon 0.9.1 and httpi 0.9.3 Rolled httpi back to 0.9.1 and all ok now |
Please manually |
I can confirm as well that I was running savon 0.9.2 and httpi 0.9.3, and rolling both of them down to 0.9.1 (along with the require statement) fixed the problem. |
related #183 |
starting to think about rolling back support for ntlm, because i don't feel like they're going to solve this issue. @hakanensari did you receive any feedback from the ntml-http guys? |
@rubii Pong halted ;-) |
ping (pyu10055) pulled the request by @hakanensari and released his fork called pyu-ntlm-http. can you guys please check if this works for you? if you need me to create a testversion, please just let me know. otherwise i'll focus on getting this fixed. |
please update httpi to version 0.9.4 and let me know if it fixes the problem. |
I've installed the Savon gem, along with httpi 0.9.4, and I am unable to load any wsdl file. I've no experience with soap, but I get the feeling it's related to this issue. I receive the following error. I'll try some of the fixes above and post back. irb(main):004:0> client.wsdl.soap_actions |
Right, so installing httpclient and adding: HTTPI::Adapter.use = :httpclient to boot.rb seems to have sorted it. |
decided to move ntlm support into a separate gem: httpi-ntlm until it's stable |
When trying to make a SOAP request using savon (0.8.6) / httpi (0.9.0), the following exception occurred:
/project/.rvm/gems/ruby-1.9.2-p0@proj/gems/httpi-0.9.0/lib/httpi/adapter/net_http.rb:111:in
respond_with': undefined method
to_hash' for nil:NilClass (NoMethodError)from /project/.rvm/gems/ruby-1.9.2-p0@proj/gems/httpi-0.9.0/lib/httpi/adapter/net_http.rb:76:in
do_request' from /project/.rvm/gems/ruby-1.9.2-p0@proj/gems/httpi-0.9.0/lib/httpi/adapter/net_http.rb:30:in
post'from /project/.rvm/gems/ruby-1.9.2-p0@proj/gems/httpi-0.9.0/lib/httpi.rb:96:in
block in post' from /project/.rvm/gems/ruby-1.9.2-p0@proj/gems/httpi-0.9.0/lib/httpi.rb:189:in
with_adapter'from /project/.rvm/gems/ruby-1.9.2-p0@proj/gems/httpi-0.9.0/lib/httpi.rb:94:in
post' from /project/.rvm/gems/ruby-1.9.2-p0@proj/gems/savon-0.8.6/lib/savon/soap/request.rb:25:in
block in response'from /project/.rvm/gems/ruby-1.9.2-p0@proj/gems/savon-0.8.6/lib/savon/soap/request.rb:41:in
with_logging' from /project/.rvm/gems/ruby-1.9.2-p0@proj/gems/savon-0.8.6/lib/savon/soap/request.rb:25:in
response'from /project/.rvm/gems/ruby-1.9.2-p0@proj/gems/savon-0.8.6/lib/savon/client.rb:78:in `request'
When I rolled back the httpi gem to version 0.7.9, I did not have this issue.
Thanks for looking into it.
The text was updated successfully, but these errors were encountered: