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

Course api errors not handled correctly #1873

Open
tkurki opened this issue Feb 1, 2025 · 0 comments
Open

Course api errors not handled correctly #1873

tkurki opened this issue Feb 1, 2025 · 0 comments
Labels

Comments

@tkurki
Copy link
Member

tkurki commented Feb 1, 2025

  • create a route (in Freeboard)
  • activate the route (in Freeboard)
  • stop the server, remove the route resource file
  • restart server
  • reload Freeboard

Freeboard seems to still be happily navigating to the route, even if it does not exist on the server any more.

Interacting with the route navigation: forward/backward/reverse button seem like they don't do anything
...because the http requests stall and never return and on the server log there is

TypeError: Cannot read properties of undefined (reading 'geometry')
    at CourseApi.getRoutePoint (/Users/tjk/git-workspace/signalk/server/lib/api/course/index.js:773:27)
    at CourseApi.<anonymous> (/Users/tjk/git-workspace/signalk/server/lib/api/course/index.js:544:32)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/tjk/git-workspace/signalk/server/lib/api/course/index.js:5:58)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant