Loading

Streaming API Clients Sending Unwrapped Bayeux Messages May Receive HTTP 400 Errors After Winter '27 Release

Fecha de publicación: Oct 15, 2026
Descripción

Starting in Winter '27, Salesforce enforces the Bayeux protocol requirement that Streaming API (CometD) clients send messages in a JSON-encoded array — including when sending only one message.

Who is affected

Customers who use Streaming API(CometD) to subscribe to PushTopics, generic streaming, Platform Events, and Change Data Capture events.

What changed

  • A client that sends a standalone JSON object (instead of a JSON array) receives an HTTP 400 response to handshake, connect, subscribe, unsubscribe, and other Bayeux requests.

  • Starting with the Winter '27 release, enforcement will strictly require requests to use a JSON array, as originally documented. Any requests previously sent as a standalone JSON object will fail.

Impact

Integrations that send unwrapped Bayeux messages can't establish or maintain Streaming API subscriptions until their payload format is updated to use a JSON array.

Solución

Update the Streaming API client to wrap every Bayeux message in a JSON array.

For example, send a single message as:

[

  {

    "channel": "/meta/handshake",

    "version": "1.0",

    "supportedConnectionTypes": ["long-polling"]

  }

]

Do not send the same message as an unwrapped JSON object:

{

  "channel": "/meta/handshake",

  "version": "1.0",

  "supportedConnectionTypes": ["long-polling"]

}

Why this is required

Bayeux messages must be sent in a JSON-encoded array, which is a requirement of the Bayeux protocol, this aligns with the public CometD documentation.

Número del artículo de conocimiento

005461982

 
Cargando
Salesforce Help | Article