elasticio / salesforce-component-v2

Apache License 2.0
2 stars 2 forks source link

Error: "3 INVALID_ARGUMENT: The Replay ID validation failed" #84

Closed MykytaDuniashev closed 1 day ago

MykytaDuniashev commented 2 months ago

Component Bug Report

Description

SMG experienced the error: 3 INVALID_ARGUMENT: The Replay ID validation failed. Ensure that the Replay ID is valid. rpcId: f27efab0-ee6b-4f8c-949f-b6728e3b5412 in the Subscribe to PubSub trigger. This error occurs every 4 days in their RE-SF-User (pub/sub) flow.

Logs:

[2024-06-16 17:00:42.422]: Fetching credentials by secretId
[2024-06-16 17:00:42.422]: Starting "Subscribe to PubSub" trigger
[2024-06-16 17:00:42.515]: Preparing SalesForce connection...
[2024-06-16 17:00:42.942]: Connected to Pub/Sub API endpoint
[2024-06-16 17:00:43.534]: Schema loaded
[2024-06-16 17:00:43.534]: SalesForce connected
[2024-06-16 17:00:43.538]: Subscription will start from replayId: 341148058
[2024-06-16 17:00:43.567]: Requesting first 10 records
[2024-06-16 17:00:43.567]: Streaming client created
[2024-06-16 17:00:43.567]: Processing existing events if present and waiting for keepalive message to finish
[2024-06-16 17:00:43.846]: gRPC stream error: {"code":3,"details":"The Replay ID validation failed. Ensure that the Replay ID is valid. rpcId: f27efab0-ee6b-4f8c-949f-b6728e3b5412","metadata":{"content-type":["application/grpc"],"error-code":["sfdc.platform.eventbus.grpc.subscription.fetch.replayid.corrupted"],"rpc-id":["f27efab0-ee6b-4f8c-949f-b6728e3b5412"],"type":["Subscribe"],"date":["Sun, 16 Jun 2024 14:00:43 GMT"]}}
[2024-06-16 17:00:43.846]: gRPC stream ended
[2024-06-16 17:00:43.846]: Failed to get keepalive message to finish: 3 INVALID_ARGUMENT: The Replay ID validation failed. Ensure that the Replay ID is valid. rpcId: f27efab0-ee6b-4f8c-949f-b6728e3b5412
[2024-06-16 17:00:43.846]: gRPC stream status: {"code":3,"details":"The Replay ID validation failed. Ensure that the Replay ID is valid. rpcId: f27efab0-ee6b-4f8c-949f-b6728e3b5412","metadata":{"content-type":["application/grpc"],"error-code":["sfdc.platform.eventbus.grpc.subscription.fetch.replayid.corrupted"],"rpc-id":["f27efab0-ee6b-4f8c-949f-b6728e3b5412"],"type":["Subscribe"],"date":["Sun, 16 Jun 2024 14:00:43 GMT"]}}
[2024-06-16 17:00:43.859]: Error occurred during trigger or action processing

Link to the Slack conversation.

Link to the SMG conversation.

Component Version

2.8.3

Workaround(s)

Reset the snapshot and restart the flow. Note that the error will recur every 4 days.

HannaTrotsenko commented 1 month ago

https://github.com/elasticio/salesforce-component-v2/releases/tag/2.8.4