-
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
Method call gives an error "HTTPClient::ConnectTimeoutError" with different adapters #939
Comments
Here's a runnable example, with the failure described require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'savon'
end
WSDL_URL = 'https://www.superfinanciera.gov.co/SuperfinancieraWebServiceTRM/TCRMServicesWebService/TCRMServicesWebService?WSDL'
pp client = Savon.client(wsdl: WSDL_URL)
pp client.operations
pp response = client.call(:query_tcrm)
pp response Diagnostic question: I tried with this, too, no change: gem 'wasabi', '= 3.5.0' # Here, I experimented, used an earlier release of Wasabi, a dependency
# didn't work with that, either |
I tried running the Web Service with Python and it worked. So I know the web service is working. I also used SoapUI Open Source. So there is a problem with the Web Service or with the configurations on my side when using the gem? |
@YairFernando67 Have you seen this below? Could you check if it solves your problem and report here? |
@marcosdemelo I tried it but it didn't work. I also try adding env_namespace: 'soap', but didn't work either.
|
@YairFernando67 are you using the certificate that they recommend in the documentation? Search it on Google: superfinanciera wsdl pdf |
@marcosdemelo yes I am using the certificate but I get the following errors.
And if I pass the certificate like this.
I get this other error.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm also affected by this and can't figure out a way to get https working. My gut-feeling is that the PS: I'm using basic auth, no client/auth certificates are needed. This is where I'd expect to tell HTTPI to use ssl: Line 9 in d871e3b
Update: Turns out the underlying problem was the SOAP document itself which contained a hard-coded port that resulted in these timeouts Checking the https://www.superfinanciera.gov.co/SuperfinancieraWebServiceTRM/TCRMServicesWebService/TCRMServicesWebService?WSDL URL provided in the example above you'll notice the
For us the fix was telling our third-party API to change in their Microsoft SOAP settings to the correct |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug report
Current behavior:
I get an error when calling a method, I am not sure why I am getting this error but I think is related to the adapter that as far as I know httpclient is the default adapter. I have tried to set a different adapter like excon but I get the same error. I hope you can help me out.
I have also tried to add some attributes like, open_timeout: 100, read_timeout: 100, raise_errors: false, follow_redirects: true, host: "http://localhost:3000", but I still get the error.
I also tried with different versions of savon 2.11.1, 2.3.3, 2.12.0
Steps to reproduce current behavior:
This code gives me this error depending on the adapter.
Expected behavior:
The method call should be successful.
System information:
The text was updated successfully, but these errors were encountered: