The Error is occurring randomly: The request could not be authorized reason:No valid session cookie found #1862
Answered
by
aeneasr
meotimdihia
asked this question in
Q&A
-
I got these errors for months and occurred randomly: time=2021-10-19T14:12:23Z level=error msg=An error occurred while handling a request func=github.com/ory/herodot.DefaultErrorReporter.func1 file=/go/pkg/mod/github.com/ory/[email protected]/error_reporter.go:24 audience=application error=map[debug: message:The request could not be authorized reason:No valid session cookie found. status:Unauthorized status_code:401 trace:
time=2021-10-19T14:12:24Z level=error msg=An error occurred while handling a request func=github.com/ory/herodot.DefaultErrorReporter.func1 file=/go/pkg/mod/github.com/ory/[email protected]/error_reporter.go:24 audience=application error=map[debug: details:map[docs:https://www.ory.sh/kratos/docs/debug/csrf hint:The anti-CSRF cookie was found but the CSRF token was not included in the HTTP request body (csrf_token) nor in the HTTP Header (X-CSRF-Token). reject_reason:The HTTP Cookie Header was set and a CSRF token was sent but they do not match. We recommend deleting all cookies for this domain and retrying the flow.] message:the request was rejected to protect you from Cross-Site-Request-Forgery reason:The request was rejected to protect you from Cross-Site-Request-Forgery (CSRF) which could cause account takeover, leaking personal information, and other serious security issues. status:Forbidden status_code:403 trace:
time=2021-10-19T14:12:25Z level=error msg=An error occurred while handling a request func=github.com/ory/herodot.DefaultErrorReporter.func1 file=/go/pkg/mod/github.com/ory/[email protected]/error_reporter.go:24 audience=application error=map[debug: message:The request could not be authorized reason:No valid session cookie found. status:Unauthorized status_code:401 trace:
time=2021-10-19T14:12:25Z level=error msg=An error occurred while handling a request func=github.com/ory/herodot.DefaultErrorReporter.func1 file=/go/pkg/mod/github.com/ory/[email protected]/error_reporter.go:24 audience=application error=map[debug: message:The request could not be authorized reason:No valid session cookie found. status:Unauthorized status_code:401 trace:
time=2021-10-19T14:12:26Z level=error msg=An error occurred while handling a request func=github.com/ory/herodot.DefaultErrorReporter.func1 file=/go/pkg/mod/github.com/ory/[email protected]/error_reporter.go:24 audience=application error=map[debug: message:The request could not be authorized reason:No valid session cookie found. status:Unauthorized status_code:401 trace:
time=2021-10-19T14:12:26Z level=error msg=An error occurred while handling a request func=github.com/ory/herodot.DefaultErrorReporter.func1 file=/go/pkg/mod/github.com/ory/[email protected]/error_reporter.go:24 audience=application error=map[debug: message:The request could not be authorized reason:No valid session cookie found. status:Unauthorized status_code:401 trace:
time=2021-10-19T14:12:27Z level=error msg=An error occurred while handling a request func=github.com/ory/herodot.DefaultErrorReporter.func1 file=/go/pkg/mod/github.com/ory/[email protected]/error_reporter.go:24 audience=application error=map[debug: message:The request could not be authorized reason:No valid session cookie found. status:Unauthorized status_code:401 trace: I think it is 0.1->1% of requests get these errors. I want to ask if we can solve this problem and how it occurred. |
Beta Was this translation helpful? Give feedback.
Answered by
aeneasr
Oct 19, 2021
Replies: 1 comment 2 replies
-
We can probably change the audience and/or the log level / severity |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
meotimdihia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can probably change the audience and/or the log level / severity