-
Notifications
You must be signed in to change notification settings - Fork 57
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
Duplicate key detected in ClientRouteRegistry #2329
Comments
@mshabarov do you remember if this happens at startup or when making changes? I haven't been able to see it yet. |
I couldn't reproduce this issue anymore after removing the legacy views.ts.
|
it happened to me in different two cases:
Also happened several times in GHA when IT were running in prod mode. |
UPD: could reproduce it again with mvn verify -Pit,production |
I can't. Did you update your local branch to include my commit? |
Yes. |
Describe the bug
I randomly get the runtime exception about duplicate key when Hilla tries to get all routes from
ClientRouteRegistry
:This prevents application to start.
Happens in both dev and prod modes, but quite randomly.
Expected-behavior
No duplicates in routes and no exception on startup.
Reproduction
This can be reproduced with the branch vaadin/flow-hilla-hybrid-example#29.
Download the starter, checkout the branch and start with
mvn
(or in production modemvn spring-boot:run -Pproduction
).Reproduces randomly locally and in GHA. You need to try several times.
System Info
Vaadin 24.4.0.alpha21, Hilla 24.4.0.alpha21
The text was updated successfully, but these errors were encountered: