Skip to content

After a while, notifications stop arriving #91

Open
@qwermus

Description

@qwermus

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions