TornadoTornadoTwistedAsyncioNativePythonPython-Tornado V4 SDK Status Events

 

These docs are for PubNub 4.0 for Python-Tornado V4 which is our latest and greatest! For the docs of the older versions of the SDK, please check PubNub 3.0 for Python, PubNub 3.0 for Python-Tornado and PubNub 3.0 for Python-Twisted.

If you have questions about the PubNub for Python SDK, please contact us at support@pubnub.com.

There is set of error categories which is returned by PubNub client through API completion blocks or delegate callbacks. Access to category can be done using status category property.

Delegate callbacks related to subscribe API usage and allow to handle real-time updates and errors.

CategoryDescription
PNAccessDeniedCategoryThe SDK will announce this error when the PAM (PubNub Access Manager) does not allow the publish to a channel.
PNBadRequestCategoryPubNub API server was unable to parse SDK request correctly. A big chance of internal SDK error, so let us know if you stumbled into it.
PNAcknowledgmentCategoryDefault category for successfully completed transactional request.
PNTimeoutCategoryProcessing has failed because of request time out.
CategoryDescription
PNTimeoutCategoryProcessing has failed because of request time out.
PNBadRequestCategoryPubNub API server was unable to parse your request correctly.
PNNetworkIssuesCategory
A subscribe event experienced an exception when running.
PNReconnectedCategory
SDK was able to reconnect to PubNub.
PNConnectedCategory
SDK subscribed with a new mix of channels (fired every time the channel / channel group mix changed).
PNCancelledCategoryRequest was cancelled by user.
PNUnknownCategoryNo specific category was assigned to the request.