And kratos says ```INFO[2024-09-05T08:40:22Z] An ...
# ory-selfhosting
l
And kratos says
Copy code
INFO[2024-09-05T08:40:22Z] An error occurred while handling a request    audience=application error=map[debug: message:The request could not be authorized reason:No valid session credentials found in the request. stack_trace:
<http://github.com/ory/kratos/session.(*ManagerHTTP).FetchFromRequest|github.com/ory/kratos/session.(*ManagerHTTP).FetchFromRequest>
        /project/session/manager_http.go:236
<http://github.com/ory/kratos/session.(*Handler).whoami|github.com/ory/kratos/session.(*Handler).whoami>
        /project/session/handler.go:215
<http://github.com/ory/kratos/x.(*RouterPublic).Handle.NoCacheHandle.func1|github.com/ory/kratos/x.(*RouterPublic).Handle.NoCacheHandle.func1>
        /project/x/nocache.go:21
<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
<http://github.com/ory/kratos/cmd/daemon.servePublic.MaxBytesHandler.func4|github.com/ory/kratos/cmd/daemon.servePublic.MaxBytesHandler.func4>
        /usr/local/go/src/net/http/server.go:3841
net/http.HandlerFunc.ServeHTTP
        /usr/local/go/src/net/http/server.go:2166
<http://github.com/urfave/negroni.(*Negroni).UseHandler.Wrap.func1|github.com/urfave/negroni.(*Negroni).UseHandler.Wrap.func1>
        /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:46
<http://github.com/urfave/negroni.HandlerFunc.ServeHTTP|github.com/urfave/negroni.HandlerFunc.ServeHTTP>
        /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29
<http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
        /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
<http://github.com/ory/kratos/x.init.func1|github.com/ory/kratos/x.init.func1>
        /project/x/clean_url.go:15
<http://github.com/urfave/negroni.HandlerFunc.ServeHTTP|github.com/urfave/negroni.HandlerFunc.ServeHTTP>
        /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29
<http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
        /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
<http://github.com/rs/cors.(*Cors).ServeHTTP|github.com/rs/cors.(*Cors).ServeHTTP>
        /go/pkg/mod/github.com/rs/cors@v1.8.2/cors.go:266
<http://github.com/ory/kratos/cmd/daemon.servePublic.func1|github.com/ory/kratos/cmd/daemon.servePublic.func1>
        /project/cmd/daemon/serve.go:114
<http://github.com/urfave/negroni.HandlerFunc.ServeHTTP|github.com/urfave/negroni.HandlerFunc.ServeHTTP>
        /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29
<http://github.com/urfave/negroni.middleware.ServeHTTP|github.com/urfave/negroni.middleware.ServeHTTP>
        /go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38
net/http.HandlerFunc.ServeHTTP
        /usr/local/go/src/net/http/server.go:2166
<http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerResponseSize.func1|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerResponseSize.func1>
        /go/pkg/mod/github.com/prometheus/client_golang@v1.13.0/prometheus/promhttp/instrument_server.go:284
net/http.HandlerFunc.ServeHTTP
        /usr/local/go/src/net/http/server.go:2166
<http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1>
        /go/pkg/mod/github.com/prometheus/client_golang@v1.13.0/prometheus/promhttp/instrument_server.go:142
net/http.HandlerFunc.ServeHTTP
        /usr/local/go/src/net/http/server.go:2166
<http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func1|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func1>
        /go/pkg/mod/github.com/prometheus/client_golang@v1.13.0/prometheus/promhttp/instrument_server.go:92
net/http.HandlerFunc.ServeHTTP
        /usr/local/go/src/net/http/server.go:2166
<http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2>
        /go/pkg/mod/github.com/prometheus/client_golang@v1.13.0/prometheus/promhttp/instrument_server.go:104
net/http.HandlerFunc.ServeHTTP
        /usr/local/go/src/net/http/server.go:2166
<http://github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerRequestSize.func1|github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerRequestSize.func1>
        /go/pkg/mod/github.com/prometheus/client_golang@v1.13.0/prometheus/promhttp/instrument_server.go:234
net/http.HandlerFunc.ServeHTTP
        /usr/local/go/src/net/http/server.go:2166
<http://github.com/ory/x/prometheusx.Metrics.Instrument.Metrics.instrumentHandlerStatusBucket.func1|github.com/ory/x/prometheusx.Metrics.Instrument.Metrics.instrumentHandlerStatusBucket.func1>
        /go/pkg/mod/github.com/ory/x@v0.0.623/prometheusx/metrics.go:115
net/http.HandlerFunc.ServeHTTP
        /usr/local/go/src/net/http/server.go:2166
<http://github.com/ory/x/prometheusx.(*MetricsManager).ServeHTTP|github.com/ory/x/prometheusx.(*MetricsManager).ServeHTTP>