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
ASP.NET Core: No route matches the supplied values. #131
Comments
Yeah ... some internal mechanics changed and apparently I didn't have acceptance coverage for some of these edge cases. I'm almost certain that this is related to #133. Weird that this would only fail on the first call. I know that is the result of an internal optimization. Your controller is very simple though. I'm surprised by this particular scenario. Do you have multiple API versions defined for this route or other routes with similar form? I want in corporate these findings into the acceptance tests. |
I have only one API version (1.0) but there are two controllers using the same routing scheme inside the project. There are multiple middlewares involved on other levels. There is Swagger. There is authentication middleware. And there is exception filter also. The code above is simplified a bit too. For instance, I did not include the GetAgentInfoAsync action but it is there actually. |
Since you said this worked in Beta 2, this must be the regression I'm tracking in #133. I'm close to having a solution. I'd like to incorporate as many of the regression cases into the acceptance test suite as possible so this doesn't happen again. As soon as it's ready, I'll notify folks to try it out. Thanks for your patience. |
RC2 has been officially published. Let me know if you run into any other issues. |
Hi Chris, Unfortunately, the issue is still there. I've just reproduced it in the simple controller.
The issue occurs only with the CreatedAtAction method. If I switch to CreatedAtRoute, it works with no problems. |
What's the response you get? Can you share your |
I get status code 500 caused by the following exception:
The test solution is attached. |
Great! Thanks. I think this might be related to the issue in #130 too. I have it fixed in a PR, but not merged yet. I'll check this repro against it. Hopefully, it will be same issue. I was wanted to published RC3. I'll let you know what I find. Probably tomorrow. |
I was able to run your repro against the forthcoming RC3 build and it seemed to work just fine. I should have the release out within the hour and then you give the latest package a try. |
RC3 is out. Give it a whirl and let me know. |
Were you able to give RC3 a try? Did it fix this issue? Thanks. |
Yup. Just checked it with RC3. The issue is fixed now. Thank you very much! |
Awesome! I've very close to finally shipping v1.1 and I want to make sure these last few critical issues have been resolved. Thanks again for confirming. |
It appears that the issue reported in #18 returned in Microsoft.AspNetCore.Mvc.Versioning v1.1.0-rc1.
When I use query string versioning and have code like this
When I request the RegisterAsync the first time, it fails with a "No route matches the supplied values" error. All subsequent requests are successful.
I tried with v1.1.0-beta2 and there is no such a problem.
The text was updated successfully, but these errors were encountered: