No such record error when having the generated stub file in a separate module #3655
Labels
module/grpc
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Team/PCM
Protocol connector packages related issues
Type/Bug
Milestone
Description:
Consider the following proto
Generate the stub file for this and add to a separate module and publish it.
Import this in a new grpc service and use as follows.
When
bal run
is executed, following error can be seen.A workaround is to add
|error
to the function return type. -->remote function hello(string request) returns stub_module:ABC|error {
This is due to some native logic issues when building the service registry
https://github.com/ballerina-platform/module-ballerina-grpc/blob/master/native/src/main/java/io/ballerina/stdlib/grpc/ServiceResource.java#L59
The text was updated successfully, but these errors were encountered: