-
Notifications
You must be signed in to change notification settings - Fork 41
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
Quarkus quarkus.http.non-application-root-path
relative to quarkus.http.root-path
leads to stuck backend requests in combination with the Quinoa Dev Server
#780
Comments
Don't you also need something like...
|
Sorry I already had quarkus.rest.path=/api/v1 |
Maybe one addition which probably is the root cause of this issue, the REST endpoints, for example
are coming from a shared multi-module lib and are discovered automatically by the simplified bean discovery (dependency injection). So I guess maybe these REST paths must be added to Some Quarkus Gradle multi-module examples from the Quarkus integration tests: |
yeah you might have to tweak that |
Got it, I will try that. |
Yes i am pretty sure if you look through the tickets here if both are mapped to the same address you need to distinguish them. That is how the integration tests are. In all my code I always set Quinoa at one path and REST API at another path. But I will let @ia3andy chime in he knows more about this stuff than me.... |
@ThoSap where did you end up on this? |
I also experience that the dev server mode seems not to work. All request from the server application on port :4200 to the backend hang. When disabling the dev server, it seems to work find but then I don't have the "push" live reload anymore and gotta press F5 every time 🤷♂️ |
@HerrDerb can you put together a small reproducer? |
Describe the bug
When the Quarkus
quarkus.http.non-application-root-path
is set relative toquarkus.http.root-path
, requests to the REST API endpoints lead to stuck backend requests when Quinoaquarkus.quinoa.ui-root-path
is unset or not set to anything different than/
(relative to thequarkus.http.root-path
, but then the dev server does not work at all).For example:
So my endpoints are the following:
If I set the
quarkus.quinoa.ui-root-path
to something different, let's say /dummy, then the backend REST API requests work and the backend is not stuck, but I then cannot use the Quinoa dev server as the path is wrong for Angular.Also
quarkus.quinoa.just-build
set totrue
fixes the error, but then I can no longer use the dev server advantages of Quinoa.This also happens with Quarkus version
3.14.4
.When I then stop the backend using
q
in the console, I get the following errors:Quinoa version
2.4.9
Quarkus version
3.15.1
Build / Runtime
Angular
Package Manager
PNPM
Steps to reproduce the behavior
Expected behavior
No response
The text was updated successfully, but these errors were encountered: