Status Events for PHP SDK

Response Status Categories

Transactional requests (like Publish, History, Where/HereNow)

CategoryDescription
PNTimeoutCategory
Processing has failed because of request time out.
PNAccessDeniedCategory
The SDK will announce this error when the Access Manager does not allow the subscription to a channel or a channel group.
PNBadRequestCategory
PubNub API server was unable to parse SDK request correctly.
PNMalformedResponseCategory
Response cannot be parsed by SDK.
PNUnknownCategory
No specific category was assigned to the request.
PNUnexpectedDisconnectCategory
The SDK is not able to reach PubNub servers because the machine or device are not connected to Internet or this has been lost, your ISP (Internet Service Provider) is having to troubles or perhaps or the SDK is behind of a proxy.

Subscription status event categories

CategoryDescription
PNConnectedCategory
SDK subscribed with a new mix of channels (fired every time the channel / channel group mix changed).
PNAccessDeniedCategory
Request failed because of access error (active Access Manager). status.errorData.channels or status.errorData.channelGroups contain list of channels and / or groups to which user with specified auth key doesn't have access.
PNMalformedResponseCategory
Request received in response non-JSON data. It can be because of publish WiFi hotspot which require authorization or proxy server message.
PNBadRequestCategory
Request can't be completed because not all required values has been passed or passed values has unexpected data type.
PNDecryptionErrorCategory
Message Persistence API may return this status category in case if some messages can't be decrypted. Unencrypted message will be returned in status.associatedObject where associatedObject is PNMessageData which contain channel and message properties.
PNTimeoutCategory
Used API didn't received response from server in time.
PNUnknownCategory
No specific category was assigned to the request.
PNUnexpectedDisconnectCategory
The SDK is not able to reach PubNub servers because the machine or device are not connected to Internet or this has been lost, your ISP (Internet Service Provider) is having to troubles or perhaps or the SDK is behind of a proxy.
PNUnexpectedDisconnectCategory
The SDK is not able to reach PubNub servers because the machine or device are not connected to Internet or this has been lost, your ISP (Internet Service Provider) is having to troubles or perhaps or the SDK is behind of a proxy.
PNCancelledCategory
Request was cancelled by user.
PNUnknownCategory
Unknown error happened.

Exceptions

ClassDescription
PubNubBuildRequestException
Error during building HTTP request to the server. Some passed in values are incorrect or have a wrong type.
PubNubConnectionException
Network connection error
PubNubResponseParsingException
Response from server is malformed or parsed incorrectly.
PubNubServerException
Server responded with error like Bad Request or Access Denied. Check for the error message for details.
PubNubValidationException
Error validating params like Missing Channel, Missing Publish key, Missing Secret Key, etc.
Last updated on