-
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
URI::InvalidURIError #488
Comments
tried your code without modifications usng savon 2.3.0 and it's working fine. |
I resolved this issue by installing gem 'httpclient'. |
what's the cause of this error? I got it as well after upgrading to 2.3 version of the savon gem. installing gem 'httpclient' also fixed the error... |
Thanks, this helped fix my error too. I changed to another version of ruby using rbenv, re-installed the savon gem, ran 'rbenv rehash'. |
That was an hour of my life I'll never get back :) Worked for me too! thx |
Had the same issue. This should probably be documented somewhere. Thanks! |
pretty please, document this. |
@MisterBender did you ever discover the root cause of this error? I'll gladly document it, but it would be nice to know what is causing this error in the first place. |
Hi, same here, I'm using latest version 2 (v 2.3.3) of the gem and latest Ruby 1.9.3 (1.9.3-p484).
I'm getting following exception:
After installing the gem httpclient it works again. |
Bump for this.
|
I feel like I'm kind of letting everyone down, because it's pretty clear this is a real issue that has affected a lot of people now, but I still haven't been able to reproduce this. Gemfile
rvm use ruby-1.9.3@savon-test --create
bundle
bundle exec rib
irb(main):001:0> RUBY_VERSION
=> "1.9.3"
irb(main):002:0> require 'savon'; Savon::VERSION
=> "2.3.3"
irb(main):003:0> Savon.client(wsdl: 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl').operations No exceptions. The backtrace that @marekstachura posted mentioned However, the version of @catskull -- since you were the last person to encounter this, could you tell me which http adapter you're using, and which version if it is in your |
I experienced this issue with an existing app today. After adding
|
@jonathan-mui the current adapter can be found on the HTTPI::Adapter.use # :httpclient by default There's an order that
|
Without the httpclient gem, the adapter used is |
@tjarratt I installed httpclient, which installed httpclient (2.3.4.1). Also noted that I'm using Rails 3.2.11. Not sure which version of rails you're using for testing, but that could be something to start with. I also blogged about it here. Not trying to nerd rage too hard, your gem has been super helpful. Just a heads up in the readme or something would be nice. |
Might be a good idea to link to this issue from your blog post @catskull. I really thought that the "will not do anything" part was going to link here :) Writing a good README is tough. I think there's a pretty good argument to be made for a FAQ, or maybe a wiki to document some of these challenges people have with Savon. Thoughts? Honestly, when I have problems like this (which is basically every single day of my life 💣) I end up spending a lot of time searching for very specific error messages on google, which almost always links me to a Stack Overflow or Github page with some pretty helpful discussion that helps direct me to what I need to change. |
Maybe I'm coming at this from the wrong direction. What if we put a hard dependency on httpclient in Savon, to help minimize these problems? It seems like that works 99% of the time for everyone... |
Good point, I will update my blog to point here. I really think that all you'd need to do is update the README to read something like:
Otherwise, a hard dependency may make sense, but I squirm thinking that there may be that one person out there that doesn't need it. I guess at the end of the day, it's not really a big deal to have a dependency. As for your problem solving (:bomb:) skills, that's essentially what I did, which led me here. And that's kind of what I mean when I quoted
because it seemed like such a small issue with a really easy fix. We should all spend that time researching things that don't have straightforward/easy solutions! 😄 |
Cool, updating the README to include a small FAQ. Will try adding to that as I see more patterns in community issues evolve. |
Sparked by the always helpful @catskull on this issue: #488 (comment)
👍 |
Hi, |
@Bodata just a friendly reminder that Ruby 1.9 was considered "end of life" over two years ago and no longer receives bug fixes or security updates. You should upgrade to a modern ruby!!!
https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on-2015/
Sent From A Very Small Keyboard
… Le 11 mai 2017 à 15:20, Bodata ***@***.***> a écrit :
Hi,
installed savon-2.11.1 on an older linux system, ruby 1.9x
I had the same error, after a gem install httpclient the problem was solved.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hello Everybody!
I am trying to build SOAP client, and installed Savon 2.3.0 in gemfile.
And wrote test code, like below.
But while in running, there is an error "URI::InvalidURIError".
Please help me if possible.
Thanks.
The text was updated successfully, but these errors were encountered: