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

fix crash when unknown endpoint is called #179

Conversation

jakecoffman
Copy link
Member

Sometimes we forget to model a new call from the Updater and this results in the CLI crashing the API server it uses to intercept calls.

This change fixes the crash and returns a 501 instead. If the CLI is running a test, it already adds an error to it, this just prevents it from crashing. So it will proceed to finish the job instead.

@jakecoffman jakecoffman requested a review from a team as a code owner September 26, 2023 18:33
@jakecoffman jakecoffman enabled auto-merge (squash) September 26, 2023 19:12
@jakecoffman jakecoffman merged commit c1e3fc0 into main Sep 26, 2023
40 checks passed
@jakecoffman jakecoffman deleted the jakecoffman/dont-crash-api-server-when-unknown-endpoint-is-used branch September 26, 2023 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants