For AI agents: this page in Markdown: https://www.pubnub.com/docs/sdks/go/status-events.md. Documentation index: https://www.pubnub.com/llms-full.txt.

Status Events for Go SDK

The PubNub Go Software Development Kit (SDK) reports status events for transactional requests and subscriptions. This page lists each category and its meaning.

Transactional requests (like publish, history, Where/HereNow)​

CategoryDescription
PNCancelledCategoryRequest was cancelled by user.
PNTimeoutCategoryProcessing has failed because of request time out.
PNAccessDeniedCategoryThe SDK will announce this error when the Access Manager does not allow the subscription to a channel or a channel group.
PNBadRequestCategoryPubNub API server was unable to parse SDK request correctly.
PNUnknownCategoryNo specific category was assigned to the request.

Subscription status event categories​

CategoryDescription
PNTimeoutCategoryProcessing has failed because of request time out.
PNDisconnectedCategoryThe SDK unsubscribed from all channels and channel groups.
PNConnectedCategorySDK subscribed with a new mix of channels (fired every time the channel / channel group mix changed).
PNAccessDeniedCategoryThe SDK will announce this error when the Access Manager does not allow the subscription to a channel or a channel group.
PNBadRequestCategoryPubNub API server was unable to parse SDK request correctly.
PNCancelledCategoryRequest was cancelled by user.
PNLoopStopCategorySubscription loop has been stopped due some reasons.
PNReconnectedCategorySubscription loop has been reconnected due some reasons.
PNAcknowledgmentCategoryAn API call was successful. This status has additional details based on the type of the successful operation.
PNReconnectionAttemptsExhaustedThe SDK loop has been stopped due maximum reconnection exhausted.
PNNoStubMatchedCategory/PNUnknownCategoryPNNoStubMatchedCategory as the StatusCategory means an unknown status category event occurred.
PNRequestMessageCountExceededCategoryPNRequestMessageCountExceededCategory is fired when the MessageQueueOverflowCount limit is exceeded by the number of messages received in a single subscribe request.
PNDisconnectedUnexpectedlyCategoryThe 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.

Was this page useful?

Last updated on