knooppuntnet icon indicating copy to clipboard operation
knooppuntnet copied to clipboard

Problem with node details page for specific node

Open vmarc opened this issue 9 months ago • 3 comments

Thanks @pyrog for reporting this problem:

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

vmarc avatar Feb 16 '25 19:02 vmarc

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 avatar Feb 16 '25 19:02 vmarc

Node with routes:

  • https://knooppuntnet.nl/en/analysis/node/1743067730
  • https://knooppuntnet.nl/en/analysis/node/267183476
  • https://knooppuntnet.nl/en/analysis/node/271047570
  • https://knooppuntnet.nl/en/analysis/node/301387377

Node without route:

  • https://knooppuntnet.nl/en/analysis/node/270619038
  • https://knooppuntnet.nl/en/analysis/node/2334919075
  • https://knooppuntnet.nl/en/analysis/node/9894640978
  • https://knooppuntnet.nl/en/analysis/node/266405470
  • https://knooppuntnet.nl/en/analysis/node/960872929
  • https://knooppuntnet.nl/en/analysis/node/4740495349
  • https://knooppuntnet.nl/en/analysis/node/960873541

Probably more. Some nodes were created in the same changeset

pyrog avatar Feb 17 '25 07:02 pyrog

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

pyrog avatar Feb 17 '25 20:02 pyrog