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

Errno::ECONNRESET: Connection reset by peer - SSL_connect in Hubspot::Contact.create!("email@address.com", {firstname: "First", lastname: "Last"}) #118

Closed
AZatsepa opened this issue Jul 5, 2018 · 2 comments

Comments

@AZatsepa
Copy link

AZatsepa commented Jul 5, 2018

Sometimes I get an error when trying to create a contact, although the contact on the Hubspot side is created successfully. I use Ubuntu 16.04 and Ruby 2.4.1. Earlier a similar problem was opened here, but it was closed.
Request Hubspot :: Contact.create_or_update! ([{Email: 'smith@example.com', firstname: 'First', lastname: 'Last'}]) gives the same result.

@cbisnett
Copy link
Collaborator

cbisnett commented Jul 5, 2018

There isn't any special SSL or connection management code in the Hubspot class. This error is the result of the remote side of the connection being closed. This isn't an issue with the gem but rather a temporary networking hiccup.

We don't rescue or attempt to handle any networking exceptions. You could catch this an retry using something like this.

@cbisnett cbisnett closed this as completed Jul 5, 2018
@AZatsepa
Copy link
Author

AZatsepa commented Jul 5, 2018

Thanks, @cbisnett !

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

2 participants