-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GRPC name resolution problem #158
Comments
The reason is probably that grpc-js does not work as expected. To the ServiceClientConstructor, the complete url |
@grpc/grpc-js is the successor of grpc. For grpc there is grpc/grpc#14900, which mentions prefix of url.
I also found the following issue: grpc/grpc-node#980 (comment). grpc-js does not seem to support this feature. I will extend httpyac so that the options can be set from outside (support channelFactoryOverride). And in addition, I will interpret the specification of the Path instead of to the server to the service |
Ok, thank you very much! Please, make sure that this override will support variables from env (coz for local run there are no need in /foo, but for dev/qa/prod stand it is). |
@ey-in-vorontsov May I ask what client you are using to support subpath in prod. Does it also support the specification of a path? In my search, I actually found that this usage is rather unsupported. |
We have standalone java application with REST API (/api) for external integrations and GRPC (/ws) for grpc-web. Url's are routed by nginx to same application with different ports. On JS client side is generated code from proto that is used with API url:
AuthServicePromiseClient:
AuthServiceClient.auth:
NOTE: rpcCall is a method from AbstractClientBase in grpc-web (https://github.com/grpc/grpc-web/blob/627e33718d5055e3cfb9c8318e81cf1b4045b189/javascript/net/grpc/web/abstractclientbase.js#L54) |
I have now tried to rebuild the PathAwareChannel. Unfortunately I could not test it reasonably and therefore I am dependent on help. Please test once with the next version.
|
Hello, Thank you, I've checked and it seems that it works well! But want to mention for history, that If no port defined (in case if 80 port is default port):
Error will be:
|
It seems that grpc-js uses as default port 443 (used in line 83) Thanks for the feedback:-) |
Hello,
When trying to access GRPC that isn't located in root (/) context it fails with error:
I'm trying to access method in /ws context. For example:
GRPC HOST/ws/com.some.pkg....
It resolves everyting until /com as host.
The text was updated successfully, but these errors were encountered: