-
Notifications
You must be signed in to change notification settings - Fork 16
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
Stack overflow crash when unknown route received #57
Comments
The problem is in RouterBaseExtensions.HandleHttpListenerExceptions, RouterBase.DefaultErrorHandler is not preserved, so the handler keeps calling itself. Easiest fix is to comment out rows 101-102 in RestServer.cs: Fix is only temporarily of course while the author (who did a great job by the way, I like Grapevine very much) posts a better one. |
Great catch! I'll check in a fix, but it might be a few days before I can get this into a nuget package. As part of getting GV5 ready for an official release, I moved some things around to reduce package coupling and increase extensibility. Bugs were inevitable. :( Thanks for finding this and bringing it to my attention. |
@Soren025 or @danieletoffetti would one of you mind verifying that this branch resolves your issue before I merge it in? |
yes, issue is resolved with this fix. Nice, thanks! |
This happens with the sample project if you provide a route not defined.
http://localhost:1234/asdfg
for example.This will also happen with the sample code shown in the project readme if the request is made in the browser. This is because the browser requests for the
favicon.ico
to which there is no route for that defined.The text was updated successfully, but these errors were encountered: