400 error on validate IPN

simplybook_dimk
Contributor
Contributor

Hello! Sometimes we are getting 400 error from paypal when validating notification. But if i make the same request after some time it works correctly. Please check the response from paypal:

 

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>

 

I can not provide request, because it contains private information.

It happens only in 1-3% of requests.

Login to Me Too
12 REPLIES 12

wilder_cuba
Contributor
Contributor

@moshe007 in my case, I used PHP and my verify IPN method is based on https://developer.paypal.com/docs/api-basics/notifications/ipn/ht-ipn/ and using Sandbox, sometimes got a 200 response and sometimes 400 (like you).

The god news is that when I put my script in production, everything WORKS FINE!!!

Then it's obvious, Sandbox enviroment have problems with IPN.

Best regards

Login to Me Too

moshe007
Contributor
Contributor

Thanks @wilder_cuba 🙂

I am just obviously concerned to put this into production....

Login to Me Too

yibizzi
New Community Member

I'm getting the same error. I'm using firebase functions to listen for IPN notifications, but I get "Bad Request Your browser sent a request that this server could not understand." as when verifying messages with paypal.

yibizzi_0-1629126739708.png

 

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.