-
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
Excaption while trying to use client #563
Comments
Hey @anoam I'm sorry that I can't be more helpful, but this exception seems incredibly specific to your own use case. You seem to be using If you can provide some more information to help debug this issue, (maybe a larger snippet of ruby code?) I'd be willing to take a look, but I'm not sure I'd be very helpful. Good luck! |
Hi, @tjarratt! Thank you for your answer. Could you prompt, what information should I post? I have just installed gem and left all settings by default. EventMachine is just used as dependency for something. For my mind it even shouldn't use EventMachine in my case, but I not sure. Full crushed code example is in original post. |
Oh I see what's going on. It looks like HTTPI, a dependency of Savon, is using the EventMachine HTTP adapter and is failing for ... Some unknown reason? Could you try this code: after require 'savon'HTTPI.adapter = :net_http ... Create client and call operationMy theory is that the EM HTTP adapter expects to be called with some particular state or at a particular time. Using another adapter should fix this particular error. Sent From A Very Small Keyboard
|
Thanks alot! |
No apology needed. I was happy to help you with your problem! If anything, I should apologize for closing this issue so quickly and dismissing your problem. At the end of the day, the important thing is that we figured out how to fix a weird bug in some software. |
FYI, I ran into this as well. Changing the HTTPI transport to net_http fixed it. |
I suppose it might be a good idea to lower em_http in the list. Mostly I'm surprised to find this many people using event machine and Savon together. Sent From A Very Small Keyboard
|
This is uncommanded. My script is just a plain ruby file with require 'savon' in it. |
In my project I try to use client.
So I run:
client = Savon.client(wsdl: 'http://schemas.xmlsoap.org/soap/envelope/?wsdl')
client.operations
And I get:
'RuntimeError: eventmachine not initialized: evma_connect_to_server
from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/eventmachine-1.0.3/lib/eventmachine.rb:664:in
connect_server' from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/eventmachine-1.0.3/lib/eventmachine.rb:664:in
bind_connect'from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/em-http-request-1.1.2/lib/em-http/http_connection.rb:55:in
activate_connection' from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/em-http-request-1.1.2/lib/em-http/http_connection.rb:92:in
setup_request'from (eval):6:in
get' from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/httpi-2.1.0/lib/httpi/adapter/em_http.rb:50:in
block in request'from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/httpi-2.1.0/lib/httpi/adapter/em_http.rb:68:in
_request' from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/httpi-2.1.0/lib/httpi/adapter/em_http.rb:50:in
request'from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/httpi-2.1.0/lib/httpi.rb:140:in
request' from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/httpi-2.1.0/lib/httpi.rb:106:in
get'from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/wasabi-3.2.3/lib/wasabi/resolver.rb:42:in
load_from_remote' from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/wasabi-3.2.3/lib/wasabi/resolver.rb:32:in
resolve'from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/wasabi-3.2.3/lib/wasabi/document.rb:141:in
xml' from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/wasabi-3.2.3/lib/wasabi/document.rb:159:in
parse'from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/wasabi-3.2.3/lib/wasabi/document.rb:146:in
parser' from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/wasabi-3.2.3/lib/wasabi/document.rb:63:in
soap_actions'from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/savon-2.4.0/lib/savon/client.rb:28:in
operations' from (irb):8 from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/railties-3.2.16/lib/rails/commands/console.rb:47:in
start'from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/railties-3.2.16/lib/rails/commands/console.rb:8:in
start' from /home/anoam/.rvm/gems/ruby-1.9.3-p385@ipr/gems/railties-3.2.16/lib/rails/commands.rb:41:in
<top (required)>'from script/rails:6:in
require' from script/rails:6:in
But when I have created new ampty project with same ruby, rails and savon gem - same code works fine.
It looks like there is a conflict but I can't find with what.
The text was updated successfully, but these errors were encountered: