Following the tutorial I was able to generate a request directly and it looks like this
req.toObject()
{
namespace: 'develop',
workflowExecution: { workflowId: 'grpc-test-order-VBLPyXIucO-25', runId: '' },
signalName: 'updateStatus',
input: {
payloadsList: [
{
metadataMap: [ [ 'encoding', <Buffer 6a 73 6f 6e 2f 70 6c 61 69 6e> ] ],
data: 'Im5vZGUi'
}
]
},
identity: '',
requestId: '',
control: ''
}
req.serializeBinary()
Uint8Array(92) [
10, 7, 100, 101, 118, 101, 108, 111, 112, 18, 31, 10,
29, 103, 114, 112, 99, 45, 116, 101, 115, 116, 45, 111,
114, 100, 101, 114, 45, 86, 66, 76, 80, 121, 88, 73,
117, 99, 79, 45, 50, 53, 26, 12, 117, 112, 100, 97,
116, 101, 83, 116, 97, 116, 117, 115, 34, 34, 10, 32,
10, 22, 10, 8, 101, 110, 99, 111, 100, 105, 110, 103,
18, 10, 106, 115, 111, 110, 47, 112, 108, 97, 105, 110,
18, 6, 34, 110, 111, 100, 101, 34
]
But if I try to use it, I got
client.SignalWorkflowExecution(req, callback)
Error: 3 INVALID_ARGUMENT: Namespace not set on request.
at Object.callErrorFromStatus (/Users/gordon/workspace/pipe17/pipe17-group/temporal/sync-order-to-temporal/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/Users/gordon/workspace/pipe17/pipe17-group/temporal/sync-order-to-temporal/node_modules/@grpc/grpc-js/build/src/client.js:176:52)
at Object.onReceiveStatus (/Users/gordon/workspace/pipe17/pipe17-group/temporal/sync-order-to-temporal/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:334:141)
at Object.onReceiveStatus (/Users/gordon/workspace/pipe17/pipe17-group/temporal/sync-order-to-temporal/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:297:181)
at /Users/gordon/workspace/pipe17/pipe17-group/temporal/sync-order-to-temporal/node_modules/@grpc/grpc-js/build/src/call-stream.js:129:78
at processTicksAndRejections (internal/process/task_queues.js:75:11) {
code: 3,
details: 'Namespace not set on request.',
metadata: Metadata {
internalRepr: Map(1) { 'content-type' => [ 'application/grpc' ] },
options: {}
}
}