ombulabs / mercadopago

Gem to communicate with the MercadoPago API
33 stars 22 forks source link

Problems with connection with SSL #8

Closed dcaliri closed 10 years ago

dcaliri commented 10 years ago
client_id = xxxxxx
client_secret = xxxxxxx

mp_client = MercadoPago::Client.new(client_id, client_secret)

NoMethodError: undefined method `response' for #<Errno::ECONNRESET: Connection reset by peer - SSL_connect>

I've tried with the following versions:

ruby-1.9.3-p448 ruby-2.0.0-p247

Also cloned the repo and all tests fail on those versions.

I've tried on a STAGING server and didn't had that problem.

devnacho commented 10 years ago

I am having the same error.

Something similar happens with mercadopago-sdk

https://github.com/mercadopago/sdk-ruby/issues/7

rafaelivan commented 10 years ago

Faraday seems to have a better support for SSL, so I changed the HTTP client used by the gem.

@dcaliri, @jgnatch, please check 06f593994e6370d96c20c1a50547540a9e233ba7 to see if you can get things working and then I will release a new version.

etagwerker commented 10 years ago

Just ran into the same issue.

It seems to be fixed in master @ 06f593994e6370d96c20c1a50547540a9e233ba7

Thanks!