Open dhiaayachi opened 2 weeks ago
Thanks for reporting this issue!
The error you are seeing is due to the fact that the TypeScript SDK does not support binary/protobuf
encoding by default. You have two options to resolve this:
Use json/protobuf
encoding: This is the default encoding for protobufs in the TypeScript SDK and is supported without any additional configuration. You can change your code to encode and decode your protobufs as JSON. Refer to the TypeScript SDK documentation for more information about encoding.
Create a custom data converter: This option allows you to specify the encoding you want to use. However, it requires more effort and can be complex depending on your requirements. For information on creating a custom data converter, refer to Custom Payload Conversion in the Temporal documentation.
By implementing one of these options, you will ensure that the data is correctly encoded and decoded, resolving the error and allowing your signals to be received by the workflow.
Issue
We are using typescript sdk to send a signal (with args) to a list of workflows using batch operation. The worker is setup with the default data convertor/default settings. When the signal is received by the workflow we get an error.
Error
Stack Trace
Sample signal args received by workflow
Batch Request
Expected
That the signal args should be correctly received by the workflow when sending a signal using batch operation.