Invalid scopes or invalid request when trying to redirect to login page

I made my application work nicely with Keycloak in a development setup, which already uses docker. I thought I’d develop this further into an automateable setup, but now when I try to setup the next server, I can’t even redirect to keycloak like before. I’m using a generic openidc client for Javascript, and it requires the scopes “openid profile”, but those are already claimed to be invalid… before trying to login?

I’ve tried to look at the debug and event logs, but I can’t find anything helpful It says “LOGIN_ERROR” because of “invalid request”… The configurations should be virtually identical, at least I can’t find the difference that is making the trouble…

The problem seems to have been that I was requesting a scope that I think I set it on default for this client, and when I set it to optional it worked… But this problem took me a few hours to solve.