PHPPHP V4 SDK Status Events

 

These docs are for PubNub 4.x for PHP which is our latest and greatest! For the docs of the older versions of the SDK, please check PubNub 3.x for PHP.

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

CategoryDescription
PNTimeoutCategoryProcessing has failed because of request time out.
PNAccessDeniedCategoryThe SDK will announce this error when the PAM (PubNub Access Manager) does not allow the subscription to a channel or a channel group.
PNBadRequestCategoryPubNub API server was unable to parse SDK request correctly.
PNMalformedResponseCategoryResponse cannot be parsed by SDK.
PNUnknownCategoryNo specific category was assigned to the request.
PNUnexpectedDisconnectCategoryThe SDK is not able to reach the PubNub Data Stream Network 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.
CategoriesDescription
PNConnectedCategorySDK subscribed with a new mix of channels (fired every time the channel / channel group mix changed).
PNAccessDeniedCategoryRequest failed because of access error (active PAM). 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.
PNMalformedResponseCategoryRequest received in response non-JSON data. It can be because of publish WiFi hotspot which require authorization or proxy server message.
PNBadRequestCategoryRequest can't be completed because not all required values has been passed or passed values has unexpected data type.
PNDecryptionErrorCategoryHistory 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.
PNTimeoutCategoryUsed API didn't received response from server in time.
PNUnknownCategoryNo specific category was assigned to the request.
PNUnexpectedDisconnectCategoryThe SDK is not able to reach the PubNub Data Stream Network 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.
PNUnexpectedDisconnectCategoryThe SDK is not able to reach the PubNub Data Stream Network 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.
PNCancelledCategoryRequest was cancelled by user.
PNUnknownCategory Unknown error happened.
ClassDescription
PubNubBuildRequestExceptionError during building HTTP request to the server. Some passed in values are incorrect or have a wrong type.
PubNubConnectionExceptionNetwork connection error
PubNubResponseParsingExceptionResponse from server is malformed or parsed incorrectly.
PubNubServerExceptionServer responded with error like Bad Request or Access Denied. Check for the error message for details.
PubNubValidationExceptionError validating params like Missing Channel, Missing Publish key, Missing Secret Key, etc.