Kratos crashing when given bad username or passwor...
# ory-selfhosting
p
Kratos crashing when given bad username or password during selfservice login flow. Any thoughts?
Copy code
[cors] 2022/08/10 14:54:11 Handler: Actual request                                                                                                                                                                                                                                                                                                                                            
[cors] 2022/08/10 14:54:11   Actual response added headers: map[Access-Control-Allow-Credentials:[true] Access-Control-Allow-Origin:[<https://launch.mergetb.example.net>] Access-Control-Expose-Headers:[Content-Type, Set-Cookie] Vary:[Origin]]                                                                                                                                              
time=2022-08-10T14:54:11Z level=info msg=started handling request http_request=map[headers:map[accept:application/json, text/plain, */* accept-encoding:gzip, deflate, br accept-language:en-US,en;q=0.5 content-length:163 content-type:application/json cookie:[csrf_token_1a33299619686a7eb98adf76046206a71f3deb1476b24ddb11a3f352c85ec89a=yiHX6m0O7bQbSlNHMKif6sy25/cUtUEK7MxkaDH8qCI=] dn
t:1 origin:<https://launch.mergetb.example.net> referer:<https://launch.mergetb.example.net/login> sec-fetch-dest:empty sec-fetch-mode:cors sec-fetch-site:same-origin sec-gpc:1 user-agent:Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 x-forwarded-for:127.0.0.1 x-forwarded-host:<http://launch.mergetb.example.net|launch.mergetb.example.net> x-forwarded-port:443 x-forwarded-proto:https x-forwarded-
scheme:https x-real-ip:127.0.0.1 x-request-id:d27fe67f729d6fd81949bd1901f59b68 x-scheme:https] host:<http://launch.mergetb.example.net|launch.mergetb.example.net> method:POST path:/self-service/login query:flow=99a83db4-3f52-432c-a2a0-0df8bf19cd01 remote:10.244.0.1:52720 scheme:http]                                                                                                                                      
time=2022-08-10T14:54:11Z level=info msg=Encountered self-service login error. audience=audit error=map[message:I[#/] S[] the provided credentials are invalid, check for spelling mistakes in your password or username, email address, or phone number stack_trace:                                                                                                                         
<http://github.com/ory/kratos/selfservice/strategy/password.(*Strategy).Login|github.com/ory/kratos/selfservice/strategy/password.(*Strategy).Login>                                                                                                                                                                                                                                                                                                                         
        /project/selfservice/strategy/password/login.go:72                                                                                                                                                                                                                                                                                                                                    
<http://github.com/ory/kratos/selfservice/flow/login.(*Handler).submitFlow|github.com/ory/kratos/selfservice/flow/login.(*Handler).submitFlow>                                                                                                                                                                                                                                                                                                                            
        /project/selfservice/flow/login/handler.go:592                                                                                                                                                                                                                                                                                                                                        
<http://github.com/ory/kratos/x.NoCacheHandle.func1|github.com/ory/kratos/x.NoCacheHandle.func1>                                                                                                                                                                                                                                                                                                                                                   
        /project/x/nocache.go:18                                                                                                                                                                                                                                                                                                                                                              
<http://github.com/ory/kratos/x.NoCacheHandle.func1|github.com/ory/kratos/x.NoCacheHandle.func1>                                                                                                                                                                                                                                                                                                                                                   
        /project/x/nocache.go:18                                                                                                                                                                                                                                                                                                                                                              
<http://github.com/julienschmidt/httprouter.(*Router).ServeHTTP|github.com/julienschmidt/httprouter.(*Router).ServeHTTP>                                                                                                                                                                                                                                                                                                                                       
        /go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387                                                                                                                                                                                                                                                                                                                  
<http://github.com/ory/nosurf.(*CSRFHandler).handleSuccess|github.com/ory/nosurf.(*CSRFHandler).handleSuccess>                                                                                                                                                                                                                                                                                                                                            
        /go/pkg/mod/github.com/ory/nosurf@v1.2.7/handler.go:234                                                                                                                                                                                                                                                                                                                               
<http://github.com/ory/nosurf.(*CSRFHandler).ServeHTTP|github.com/ory/nosurf.(*CSRFHandler).ServeHTTP>                                                                                                                                                                                                                                                                                                                                                
        /go/pkg/mod/github.com/ory/nosurf@v1.2.7/handler.go:185
b
Is it actually crashing - e.g. the process/docker container stops? Or just printing the stack trace to the console? Because if it’s the latter, that’s intended.
p
Oh you're right. It's just dumping the stack. Thanks.