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

Error with BadRequest(ModelState) #212

Open
ZajacPiotr98 opened this issue Sep 17, 2020 · 0 comments
Open

Error with BadRequest(ModelState) #212

ZajacPiotr98 opened this issue Sep 17, 2020 · 0 comments

Comments

@ZajacPiotr98
Copy link

When I try to return BadRequest with ModelStateDictionary using your package, app crashes. I think, app does infinitive loop in:

public static Task BadRequest(this HttpContext context, ModelStateDictionary modelState)
        {
            if (modelState == null)
            {
                throw new ArgumentNullException(nameof(modelState));
            }
            return context.BadRequest(modelState);
        }

It called BadRequest(ModelStateDictionary), so itself

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

No branches or pull requests

1 participant