-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
Even though their API says they'll only return JSON, they will sometimes return HTML if it's a 500 error. In this situation, we should throw a different error message rather than falling back to 'JSON response could not be decoded.'
Emarsys/src/Snowcap/Emarsys/Client.php
Line 914 in 3ca864f
| throw new ServerException("JSON response could not be decoded:\n" . json_last_error_msg()); |