Skip to content
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

Rare but showstopper OpenSSL errors with xmlrpc #70

Closed
sneakernets opened this issue Feb 20, 2018 · 6 comments
Closed

Rare but showstopper OpenSSL errors with xmlrpc #70

sneakernets opened this issue Feb 20, 2018 · 6 comments

Comments

@sneakernets
Copy link

sneakernets commented Feb 20, 2018

I'm getting some interesting errors occasionally when sending simple commands, like removing contacts from a group:

OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=unknown state
/home/testbed/.rvm/gems/ruby-2.4.1@global/gems/xmlrpc-0.2.1/lib/xmlrpc/client.rb:495:in `do_rpc'
/home/testbed/.rvm/gems/ruby-2.4.1@global/gems/xmlrpc-0.2.1/lib/xmlrpc/client.rb:287:in `call2'
/home/testbed/.rvm/gems/ruby-2.4.1@global/gems/xmlrpc-0.2.1/lib/xmlrpc/client.rb:268:in `call'
/home/testbed/.rvm/gems/ruby-2.4.1/gems/infusionsoft-1.2.0/lib/infusionsoft/connection.rb:18:in `connection'
/home/testbed/.rvm/gems/ruby-2.4.1/gems/infusionsoft-1.2.0/lib/infusionsoft/request.rb:30:in `request'
/home/testbed/.rvm/gems/ruby-2.4.1/gems/infusionsoft-1.2.0/lib/infusionsoft/request.rb:6:in `get'
/home/testbed/.rvm/gems/ruby-2.4.1/gems/infusionsoft-1.2.0/lib/infusionsoft/client/contact.rb:134:in `contact_remove_from_group'
/home/testbed/.rvm/gems/ruby-2.4.1/gems/infusionsoft-1.2.0/lib/infusionsoft.rb:19:in `method_missing'

In the meantime I'm having to catch this error in a rescue block, to try again after a certain number of seconds. The gem seems unaware that this situation can happen.

@sneakernets
Copy link
Author

I'm still getting these sometimes, as recently as 7 AM (CDT) . Do I need to go to oauth now? Would that be more reliable? Having to rescue every possible API call is a pain.

@rafaldyrda
Copy link

I too am having this issue now. Is there a recommended solution?

@sneakernets
Copy link
Author

The only thing I've found is to account for every single error I've seen so far, catch it, and try again. I know that's tedious, but it's the only way I've been able to keep my scripts running for more than an hour.

@nateleavitt
Copy link
Owner

Hey guys.. sorry for the late response. Are you guys still seeing these errors?

@nateleavitt
Copy link
Owner

Also adding here. Try this: #71 (comment)

@nateleavitt
Copy link
Owner

Closing and marking this as a duplicate of #71 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants