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

After a while, notifications stop arriving #91

Open
qwermus opened this issue Jul 24, 2020 · 0 comments
Open

After a while, notifications stop arriving #91

qwermus opened this issue Jul 24, 2020 · 0 comments

Comments

@qwermus
Copy link

qwermus commented Jul 24, 2020

Thanks for the great app, it made it a lot easier to create my app.
But i have some questions. I use authorization, then listen for incoming calls. In this case, the console looks like this:

`[2020-07-24 09:03:26] PubNub.DEBUG: GET https://ps.pndsn.com/v2/subscribe/sub-c-b8b9cd8c-e906-11e2-b383-02ee2ddab7fe/265610645286545_6b66a04b/0?tt=15955780863943033&tr=2&pnsdk=PubNub-PHP%2F4.1.5&uuid=6E109BFA-671C-464F-8684-FFC47009EE78 {"method":"Subscribe"} []

[2020-07-24 09:04:06] PubNub.DEBUG: Response body: {"t":{"t":"15955780863943033","r":2},"m":[]} {"method":"Subscribe","statusCode":200} []

[2020-07-24 09:04:06] PubNub.DEBUG: GET https://ps.pndsn.com/v2/subscribe/sub-c-b8b9cd8c-e906-11e2-b383-02ee2ddab7fe/265610645286545_6b66a04b/0?tt=15955780863943033&tr=2&pnsdk=PubNub-PHP%2F4.1.5&uuid=6E109BFA-671C-464F-8684-FFC47009EE78 {"method":"Subscribe"} []

[2020-07-24 09:05:06] PubNub.ERROR: cURL error 28: Operation timed out after 60004 milliseconds with 0 bytes received {"method":"Subscribe"} []

[2020-07-24 09:05:06] PubNub.DEBUG: GET https://ps.pndsn.com/v2/subscribe/sub-c-b8b9cd8c-e906-11e2-b383-02ee2ddab7fe/265610645286545_6b66a04b/0?tt=15955780863943033&tr=2&pnsdk=PubNub-PHP%2F4.1.5&uuid=6E109BFA-671C-464F-8684-FFC47009EE78 {"method":"Subscribe"} []

[2020-07-24 09:06:06] PubNub.ERROR: cURL error 28: Operation timed out after 60004 milliseconds with 0 bytes received {"method":"Subscribe"} []

[2020-07-24 09:06:06] PubNub.DEBUG: GET https://ps.pndsn.com/v2/subscribe/sub-c-b8b9cd8c-e906-11e2-b383-02ee2ddab7fe/265610645286545_6b66a04b/0?tt=15955780863943033&tr=2&pnsdk=PubNub-PHP%2F4.1.5&uuid=6E109BFA-671C-464F-8684-FFC47009EE78 {"method":"Subscribe"} []

[2020-07-24 09:07:06] PubNub.ERROR: cURL error 28: Operation timed out after 60004 milliseconds with 0 bytes received {"method":"Subscribe"} []

[2020-07-24 09:07:06] PubNub.DEBUG: GET https://ps.pndsn.com/v2/subscribe/sub-c-b8b9cd8c-e906-11e2-b383-02ee2ddab7fe/265610645286545_6b66a04b/0?tt=15955780863943033&tr=2&pnsdk=PubNub-PHP%2F4.1.5&uuid=6E109BFA-671C-464F-8684-FFC47009EE78 {"method":"Subscribe"} []

[2020-07-24 09:08:06] PubNub.ERROR: cURL error 28: Operation timed out after 60001 milliseconds with 0 bytes received {"method":"Subscribe"} []

[2020-07-24 09:08:06] PubNub.DEBUG: GET https://ps.pndsn.com/v2/subscribe/sub-c-b8b9cd8c-e906-11e2-b383-02ee2ddab7fe/265610645286545_6b66a04b/0?tt=15955780863943033&tr=2&pnsdk=PubNub-PHP%2F4.1.5&uuid=6E109BFA-671C-464F-8684-FFC47009EE78 {"method":"Subscribe"} []

[2020-07-24 09:08:46] PubNub.DEBUG: Response body: {"t":{"t":"15955780863943033","r":2},"m":[]} {"method":"Subscribe","statusCode":200} []

[2020-07-24 09:08:46] PubNub.DEBUG: GET https://ps.pndsn.com/v2/subscribe/sub-c-b8b9cd8c-e906-11e2-b383-02ee2ddab7fe/265610645286545_6b66a04b/0?tt=15955780863943033&tr=2&pnsdk=PubNub-PHP%2F4.1.5&uuid=6E109BFA-671C-464F-8684-FFC47009EE78 {"method":"Subscribe"} []

[2020-07-24 09:09:46] PubNub.ERROR: cURL error 28: Operation timed out after 60004 milliseconds with 0 bytes received {"method":"Subscribe"} []

[2020-07-24 09:09:46] PubNub.DEBUG: GET https://ps.pndsn.com/v2/subscribe/sub-c-b8b9cd8c-e906-11e2-b383-02ee2ddab7fe/265610645286545_6b66a04b/0?tt=15955780863943033&tr=2&pnsdk=PubNub-PHP%2F4.1.5&uuid=6E109BFA-671C-464F-8684-FFC47009EE78 {"method":"Subscribe"} []
`

As you can see, every time a get an PubNub.ERROR: cURL error 28. Maybe, because, there are no calls? Tell me, is it correct?

And my second question is more of a problem. After i start the script ($ php index.php) i am successfully receiving notifications. First, the "Ringing" status, then, after the answer, the "CallConnected" status and at the end of the conversation "NoCall". Everything works successfully for 10-15 minutes, then notifications stop coming. Everything looks the same in the console, but there are no notifications. I need to press ctrl + z to stop the listener and then restart the $ php index.php script. After this, notifications come again, but after a while everything repeats again

What is the problem? How can I fix this?

Thank you

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