0

I have an object in Salesforce that I am trying to subscribe to using a Push Topic that I created. But when I try to subscribe to that push topic from Workbench I get 403::Unknown Client exception.

I am not sure what I'm doing wrong.

{
  "advice": {
    "interval": 0,
    "reconnect": "handshake"
  },
  "channel": "/meta/connect",
  "id": "26",
  "error": "403::Unknown client",
  "successful": false,
  "action": "connect"
}
  • Without details of the object, query you are performing it would be difficult to suggest the cause. To narrow down further are you able to create a new simple Push Topic with the Query " SELECT Id, Name from Account ", and Subscribe to it? This doc gives general details of 403 Unknown Client Error developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/… – Swetha Jun 11 at 14:27
  • Its basically a custom object with 2 text fields for now. And yes, I've tried to subscribe to Account as well. I get the same error returned back. – Chashmeet Jun 11 at 14:59
  • Can you confirm that you are not using more than one CometD connection – Swetha Jun 11 at 15:52
  • Yes, that's correct. – Chashmeet Jun 11 at 17:02
  • Workbench is an open-source free tool and is not officially supported by Salesforce. Streaming API subscription with Workbench is sometimes flaky and salesforce no longer recommends using Workbench. Can you use the EMP Connector, which is a Java client tool and also open-source: github.com/forcedotcom/EMP-Connector and see if the issue still persists. – Swetha Jun 12 at 6:06
0

Workbench is an open-source free tool and is not officially supported by Salesforce. Streaming API subscription with Workbench is sometimes flaky and salesforce no longer recommends using Workbench. Please use the EMP Connector, which is a Java client tool and also open-source: github.com/forcedotcom/EMP-Connector to fix the issue.

Example: https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/code_sample_java_client_intro.htm

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.