Getting Intermittent ADB2C “Bad Request” error

Solution for Getting Intermittent ADB2C “Bad Request” error
is Given Below:

I have a sign up custom policy and we get an intermittent “Bad Request” error after the submit button is clicked. I read somewhere that it could be that the request is too long but I am not sure if this is the same error. When page is refreshed it usually resolves and it goes to the redirect uri and processes successfully. Application insights logs don’t have anything. How can I know what the specific cause?

console screen shot

There’s an open issue here, where B2C doesn’t handle an internal error properly if the page is left open for > ~4 hours. Does this match your scenario?