phpipam-api-clients icon indicating copy to clipboard operation
phpipam-api-clients copied to clipboard

[php-client/class.phpipam-api.php] can't handle exceptions

Open ivoruetsche opened this issue 1 year ago • 0 comments

Hi

We use the php-client API , but struggling with the die() after a cURL exception: https://github.com/phpipam/phpipam-api-clients/blob/74d67c44dd2221f880917678929c9e6b71b7c4a4/php-client/class.phpipam-api.php#LL266C15-L266C15

If the IPAM server is not reachable or other error occurs, we would like to handle the error and will react, but the script is stopping and we didn't have any option to catch the exception.

Is there a possibility to intercept this or why give the library not a result back to the main script.

ivo

ivoruetsche avatar Jun 05 '23 14:06 ivoruetsche