Skip to content
Bug Barometer
All issues
In Review

MuleSoft / Anypoint Connectors

SF Pub/Sub Connector Subscribe Channel Listener consumes the same replayId multiple times with error "The server has unexpectedly closed the stream"

Summary

Salesforce Pub/Sub Connector Subscribe Channel Listener consumes the same replayId multiple times. During that time, it prints error message "The server has unexpectedly closed the stream" as well.


For instance, in this sample log, replayId 25874418 was processed multiple times and also seeing the error message "The server has unexpectedly closed the stream" printed by PubSub Connector.


Sample Error log:

----

[2024-11-19 09:21:18.753] INFO Logger [[MuleRuntime].uber.49: [test].test-Flow.CPU_INTENSIVE @586fc58f] [event: 199..]: {

"eventId": "3f3..",

"replayId": 25874418, <== The replayId was processed

...

[2024-11-19 09:22:15.375] ERROR SubscribeChannelSource [grpc-default-executor-0] [event: ]: An error has occurred while processing events. Root exception was: java.lang.Exception: The server has unexpectedly closed the stream. <== The error occurred

at com.mulesoft.connector.salesforce.pubsub.internal.service.source.SourceDataSupplier.onCompleted(SourceDataSupplier.java:90)

...

[2024-11-19 09:24:18.961] INFO Logger [[MuleRuntime].uber.49: [test].test-Flow.CPU_INTENSIVE @586fc58f] [event: 199..]: {

"eventId": "3f3..",

"replayId": 25874418, <== The replayId was processed again

...

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as In Review with 1 report

    Nov 30, 2026

SF Pub/Sub Connector Subscribe Channel Listener consumes the same replayId multiple times with error "The server has unexpectedly closed the stream" · Bug Barometer