Handle Guzzle exception



I’m using the moltin php-sdk and sometimes I get an Guzzle exception that stops my script for running.

GuzzleHttp\Exception\ServerException [ 502 ]: Server error: `GET https://api.moltin.com/v2/files/8d2a8d29-027c-4298-9a6e-1b68033748d6` resulted in a `502 Bad Gateway` response: {"errors":[{"status":500,"title":"Internal Server Error","detail":"There was an internal server error, you can report wi (truncated...)

How can handle this kind of exceptions so my script still will be exceuted


hi @promijn

Could I see more of your Guzzle implementation?




This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.