OrahKokos / coinpayments

CoinPayments is a cloud wallet solution that offers an easy way to integrate a checkout system for numerous cryptocurrencies.
MIT License
103 stars 48 forks source link

Automated IPN crash #14

Closed daniel-van-niekerk closed 6 years ago

daniel-van-niekerk commented 6 years ago

The automated IPN crash if it receives something it cannot parse. While testing it received html instead of JSON.

Seems to be a reply from proxy or bot checker called Incapsula. Might have to wrap JSON.parse(data) in a try/catch.

OrahKokos commented 6 years ago

Please note that I plan to drop the auto ipn feature. I'd like to move towards having a clean api wrapper. I will address all issues in the coming weeks.