Migrate to grpc-js#181
Conversation
2e05e2a to
e8f46f4
Compare
|
Biggest changes:
Possible source of worry (i.e. investigation needed):
|
scothis
left a comment
There was a problem hiding this comment.
Do you have a sense of the performance impact? if any
|
I managed to successfully deploy and run the function on the core runtime (I have a strange issue with Knative). |
I have spent a significant time getting a proper riff install on a PKS cluster, so I have not started looking at this particular aspect yet. The Docker image |
|
Hi, Second, this doesn't necessarily help with this migration exactly but it explains why this part changed: the intended way of having a server end a call with a non-OK status is to call |
|
@murgatroid99 thanks for the feedback (apologies for the delay, I was in "staycation" until today). Regarding the emission of errors, does this mean that: grpcStream.call.sendError({
code: grpc.status.INVALID_ARGUMENT,
details: `${errors.reserved_prefixes.NOT_ACCEPTABLE}: ${err.cause}`,
});can be replaced with: grpcStream.emit('error', {
code: grpc.status.INVALID_ARGUMENT,
details: `${errors.reserved_prefixes.NOT_ACCEPTABLE}: ${err.cause}`,
});? I tried to follow your advice and open another draft PR, however I now face several issues:
|
|
Converting this PR to draft. I'll try to open another one with aforementioned suggestions. |
|
@fbiville That is what I meant about emitting errors. I don't see anything wrong with how you're importing the package definition and I don't know why it would be returning UNIMPLEMENTED errors. |
Fixes #113