Loading
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

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

게시 일자: Oct 15, 2026
상세 설명

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.

솔루션

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.

Knowledge 기사 번호

005461982

 
로드 중
Salesforce Help | Article