Open eltoroit opened 1 month ago
Hi @eltoroit, thanks for reporting this error. Unfortunately, this is is not something that I can address at the client level as I can't modify the schema validation logic from the gRPC library and Schema ID is mandatory according the proto file of the API.
In order to support data/ChangeEvents
, we would either need:
The reason why there's no schema ID on this channel is that it's a composite source that matches multiple schemas/objects. I had a similar issue with custom message channels: the schema ID wasn't mapped to a schema that we could retrieve because of its composite nature. However, we did have an ID so we could avoid the schema error and parse incoming events with some special logic.
I would open a bug on https://github.com/forcedotcom/pub-sub-api to request data/ChangeEvents
schema ID support.
Although, I can subscribe to the generic CDC event
data/ChangeEvents
, when it receives the notification it's not able to handle it.I am getting this error:
I think problem is here https://github.com/pozil/pub-sub-api-node-client/blob/40de44d379929126d1f621d0a0652201ceeb7a38/src/client.js#L565 because the
response
does not have aschemaId
.