-
Notifications
You must be signed in to change notification settings - Fork 22
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
Can we prepend onto the path to allow for how the server is set up? #252
Comments
Looking further into this the url for the url request is created using...
But the generated code has a path with an initial If you remove the initial So, because the generated code looks like this...
It will take whatever is provided in the If the generated code drops the initial Is this something that is configurable in the current project? Or would this require some change to make this work? Thanks |
Alternatively... is there a way to add "path" details to the Thanks |
Hey @oliverfoggin - thank you for flagging this issue and for providing examples in #161. I'll investigate this and come up with a resolution. I think the right fix will likely be in how URLs are constructed in the |
@rebello95 I agree it definitely needs to be re-looked at. The quickest/smallest fix would be to revert #161 but that would leave the issue mentioned in there. Possibly changing the config to take a Or providing a Either way it should not remove any path elements entered by the developer. Thanks |
I think the changes in #161 should stick around since it has parity with what connect-go generates, but we can fix this in the URL concatenation logic, yes. I have a fix which I will write tests for and open a PR. |
This adds support for specifying hosts with additional path extensions, such as `https://connectrpc.com/a/b/c/`. Previously, `/a/b/c` would be dropped. Resolves #252. Also related to #161.
I have a service like
example.v1.ExampleService/SayHello
.Which gives me a full url like...
https://our.server.com/example.v1.ExampleService/SayHello
.But the actual path in the server has been configured to be like...
https://our.server.com/some/api/path/example.v1.ExampleService/SayHello
.I'm not sure how to configure this as it doesn't seem to be something I have access to?
If I add the path onto the
host
when creating the config it is truncated by the time the request is made.Is this something that we're able to do?
Thanks
The text was updated successfully, but these errors were encountered: