IPN 500 issues

Dandello
Contributor
Contributor

We've gotten the dreaded 'PayPal Instant Payment Notification Warning'. BUT the script is returning valid information to the server (customers are getting their password and login information and their info is being correctly logged - including their transaction info) even though the IPN History has the script in 'retrying' and the PayPal IPN test comes up with a 500 error.

 

This script was working correctly on a different server and the TLS settings are correct  (otherwise the customer info would not be being logged by the script). No errors related to this script are being passed to any server error logs.

Login to Me Too
2 REPLIES 2

Dandello
Contributor
Contributor

More info: the Perl IPN scripts over at Github also throw 500 errors. But the main customer-facing script is still working, despite the 500 errors being reported by PayPal.

Login to Me Too

Dandello
Contributor
Contributor

More: after adding even more error catchers to the script: (This is Perl, BTW)

It appears that the content being returned by PayPal is invalid.  The response back is on the order of

_protocol - HTTP/1.1
_content - INVALID
_rc - 200
_headers - connection - close
_headers - set-cookie - ARRAY(0x1b0e258)
_headers - date - Thu, 02 Aug 2018 17:27:39 GMT
_headers - vary - Accept-Encoding,User-Agent
_headers - client-peer - 173.0.82.66:443
_headers - client-ssl-cipher - ECDHE-RSA-AES128-SHA
_headers - client-ssl-cert-issuer - /C=US/O=DigiCert Inc/CN=DigiCert Global CA G2
_headers - client-date - Thu, 02 Aug 2018 17:27:39 GMT
_headers - content-type - text/html; charset=UTF-8
_headers - server - Apache
_headers - client-transfer-encoding - ARRAY(0x1448548)
_headers - client-ssl-socket-class - IO::Socket::SSL
_headers - client-response-num - 1
_headers - ::std_case - HASH(0x1922250)
_headers - x-frame-options - SAMEORIGIN
_headers - client-ssl-cert-subject - /C=US/ST=California/L=San Jose/O=PayPal, Inc./OU=PayPal Production/CN=ipnpb.sandbox.paypal.com
_msg - OK
_request - _method - POST
_request - _uri_canonical - https://ipnpb.sandbox.paypal.com/cgi-bin/webscr
_request - _content - cmd=_notify-validate&
_request - _uri - https://ipnpb.sandbox.paypal.com/cgi-bin/webscr
_request - _headers - HTTP::Headers=HASH(0x135ff90)

Content-Type: text/plain

So, PayPal is returning invalid content to the IPN script?

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.