0

I failed to subscribe platform event of a sandbox using workbench. The error code is "403::Unknown client". "streaming api developer guide" says the error code means The server deleted the client CometD session due to a timeout, which can be caused by a network failure. The client must perform a new handshake and reconnect.

However, I can subscribe platform event of a product or developer org, under the same network, with the same browser environment.

I suppose sandbox org can't support platform event. Is it a known issue or how should I troubleshoot this?

Unknown exception occurred. Removing offending listener or subscription.
[
  {
    "advice": {
      "interval": 0,
      "reconnect": "handshake"
    },
    "channel": "/meta/subscribe",
    "id": "8",
    "error": "403::Unknown client",
    "successful": false
  },
  "Invalid argument: expected subscription, not undefined"
]
8. Subscription Failure: 403::Unknown client
{
  "advice": {
    "interval": 0,
    "reconnect": "handshake"
  },
  "channel": "/meta/subscribe",
  "id": "8",
  "error": "403::Unknown client",
  "successful": false
}

enter image description here

3
  • What is the status shown in the Subscriptions related list on the Platform event? You might want to try recompiling trigger to see if it fixes the issue as mentioned in salesforce.stackexchange.com/questions/206577/…. Commented Jul 31, 2020 at 15:22
  • @Swetha I subscribed the platform event through the workbench client, not through trigger. Workbench threw the subscription failure: 403::Unknown Client. I don't see any record under Subscriptions related list on the Platform event.
    – Rick Yang
    Commented Aug 11, 2020 at 6:48
  • 1
    Workbench is an open-source free tool and is not officially supported by Salesforce. Please use the EMP Connector, which is a Java client tool, and also open-source: github.com/forcedotcom/EMP-Connector and see of it fixes the issue.Related: salesforce.stackexchange.com/questions/309049/… Commented Sep 8, 2020 at 15:07

0

You must log in to answer this question.

Browse other questions tagged .