Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Exceptions if no connectivity #47

Open
npedrocco opened this issue May 19, 2016 · 0 comments
Open

Exceptions if no connectivity #47

npedrocco opened this issue May 19, 2016 · 0 comments

Comments

@npedrocco
Copy link

Anytime the serves is not reachable an exceptions is thrown on line 112 of AbstractClient.php:

            throw new Exception\RuntimeException(sprintf(
                'Unable to connect: %s: %d (%s)',
                $host,
                $e->getCode(),
                $e->getMessage()
            ));

This exceptions is not catchable from code so when pushing notifications in a loop if for a moment the connection is lost the code breaks and no further pushes are sent, even if connection is available again.

is there a workaround or something?

Thanks

Regards

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

No branches or pull requests

1 participant