You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parsing the various status and error responses would be tiresome, so as a simple fix would it be better if the request were wrapped in a try/catch block and return false on any exception....
Been using this in production for a while for postcode validation and we see all sorts of unhandled exceptions when validating postcodes.
Looking at the
\JustSteveKing\LaravelPostcodes\Service\PostcodeService::validate
method:Parsing the various status and error responses would be tiresome, so as a simple fix would it be better if the request were wrapped in a try/catch block and return false on any exception....
I've tried this and it works for me. Happy to do a PR if this is an acceptable solution.
The text was updated successfully, but these errors were encountered: