small medium large xlarge

10 May 2008, 20:30
Federico Gonzalez Lutteroth (1 post)


I implemented the solution for receiving IPN’s in the website payments standard option. Everything was working fine when I was testing with the sandbox, but when i tryied to comunicate with the real server i get a “Errno::ECONNRESET (Connection reset by peer):” error, when doing the verification.

Here is the code:

  def ipnConfirm
    uri = URI.parse("")
    status = nil
    Net::HTTP.start(, uri.port) do |request|
        status =, @raw + "&cmd=_notify-validate").body
    logger.debug "status = '#{status}'"
    status == "VERIFIED"

The error is stated as being on lines 4 and 5. (the Net:HTTP line, and the next one.) Could this be because i don’t have a SSL certificate?


13 May 2008, 12:53
Joe Fair (4 posts)


Can you confirm that you get get to the paypal site from where you are running? Try doing a ping, or better yet, wget and let us know.

Thanks, Joe

You must be logged in to comment