Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ivoruetsche opened this issue Jun 5, 2023 · 0 comments
Open

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

ivoruetsche opened this issue Jun 5, 2023 · 0 comments

Comments

@ivoruetsche
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant