Some times we get OpenSSL::SSL::SSLError

102 views
Skip to first unread message

Samir Sabri

unread,
Sep 27, 2021, 8:14:10 AM9/27/21
to AdWords API and Google Ads API Forum
Hello

Can you please help up us fix/diagnose why sometimes we get this error:

OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:103:in `connect'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:103:in `ssl_connect'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:41:in `initialize'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:26:in `new'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:26:in `create_socket'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:752:in `block in connect'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:748:in `connect'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:511:in `query'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:177:in `query'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient.rb:1242:in `do_get_block'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpclient-2.8.3/lib/httpclient.rb:856:in `request'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpi-2.4.5/lib/httpi/adapter/httpclient.rb:26:in `request'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpi-2.4.5/lib/httpi.rb:161:in `request'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/httpi-2.4.5/lib/httpi.rb:133:in `post'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/google-ads-common-1.0.2/lib/ads_common/http.rb:73:in `post_stream'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/google-adwords-api-1.5.0/lib/adwords_api/report_utils.rb:228:in `make_adhoc_request'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/google-adwords-api-1.5.0/lib/adwords_api/report_utils.rb:216:in `get_report_response_with_awql'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/google-adwords-api-1.5.0/lib/adwords_api/report_utils.rb:169:in `download_report_as_stream_with_awql'
/var/www/backend/shared/bundle/ruby/2.3.0/gems/google-adwords-api-1.5.0/lib/adwords_api/report_stream.rb:52:in `each_line'
/var/www/backend/releases/20210923152552/lib/ads_apis/google/spending_fetch_tester.rb:42:in `test_core'


Google Ads API Forum Advisor

unread,
Sep 27, 2021, 10:15:58 AM9/27/21
to as3...@gmail.com, adwor...@googlegroups.com
Hi Samir,

Thank you for posting your concern.

I can see that you've encountered an error on your code for Ruby client library. Unfortunately, the issues and concerns related to the Ruby client library is already outside of our scope. With this, I would suggest to post your concern here and the author of the client library, that is more knowledgeable here, will reply to you there.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2OUOnL:ref

Samir Sabri

unread,
Oct 4, 2021, 4:46:12 AM10/4/21
to AdWords API and Google Ads API Forum
Thank you, as we did not change anything recently at our code base, our API calls is successful most of the time, however, we got that error above sometimes, we thought that this is something related to your side. Any idea?

Google Ads API Forum Advisor

unread,
Oct 4, 2021, 10:18:16 PM10/4/21
to as3...@gmail.com, adwor...@googlegroups.com
Hi Samir,

Thank you for the reply.

Have you already tried reaching out to the author of the client library by posting your concern here? If not, please do so as the error appears to be client library related and they are more equipped to this type of issue.
Reply all
Reply to author
Forward
0 new messages