Skip to content
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

Problem with node details page for specific node #442

Open
vmarc opened this issue Feb 16, 2025 · 3 comments
Open

Problem with node details page for specific node #442

vmarc opened this issue Feb 16, 2025 · 3 comments
Assignees

Comments

@vmarc
Copy link
Owner

vmarc commented Feb 16, 2025

Thanks @pyrog for reporting this problem:

500 - Internal server error for https://knooppuntnet.nl/en/analysis/node/860338233

@vmarc
Copy link
Owner Author

vmarc commented Feb 16, 2025

Log file:

java.util.NoSuchElementException: head of empty list
        at scala.collection.immutable.Nil$.head(List.scala:662) ~[scala-library-2.13.12.jar!/:?]
        at scala.collection.immutable.Nil$.head(List.scala:661) ~[scala-library-2.13.12.jar!/:?]
        at kpn.server.analyzer.engine.analysis.location.LocationServiceImpl.toInfos(LocationServiceImpl.scala:78) ~[!/:?]
        at kpn.server.api.analysis.pages.node.NodeDetailsPageBuilderImpl.$anonfun$buildPage$1(NodeDetailsPageBuilderImpl.scala:36) ~[!/:?]
        at scala.Option.map(Option.scala:242) ~[scala-library-2.13.12.jar!/:?]
        at kpn.server.api.analysis.pages.node.NodeDetailsPageBuilderImpl.buildPage(NodeDetailsPageBuilderImpl.scala:27) ~[!/:?]
        at kpn.server.api.analysis.pages.node.NodeDetailsPageBuilderImpl.build(NodeDetailsPageBuilderImpl.scala:22) ~[!/:?]
        at kpn.server.api.analysis.AnalysisFacadeImpl.$anonfun$nodeDetails$1(AnalysisFacadeImpl.scala:122) ~[!/:?]

The database does not contain location information for this node (NodeDoc.locations is empty).

Further investigation required:

  • are there more nodes without location information?
  • debug location analysis logic for this node

@vmarc vmarc self-assigned this Feb 16, 2025
@pyrog
Copy link

pyrog commented Feb 17, 2025

It seem that all nodes in Pertuis get an error 500
Image

I could select La Bastidonne or Ansouis in Explore by location
Image

…but I can't with Pertuis
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants