No Stack Trace or Error Info Logged with `catchTags` on Unauthorized Error

Hey folks,

Does anyone know if this is an expected behaviour on the backend?
I use catchTags on one of my endpoints
.pipe(
      Effect.catchTags({
        Unauthorized: (e) => Effect.fail(e),
      }),
    );


and when Unauthorized error happens, I can only see this log below (in my backend API's logs)

[21:24:43.268] INFO (#133) http.span.16=1ms: Sent HTTP response
  http.status: 401
  http.method: POST
  http.url: /todos


There is no stack trace, no info about the error..


However, when I run my client app in browser, I see the response from my backend's API. I would expect to see the same in my backend API's logs. (without explicitly using Effect.logError())

cause    { status: "UNAUTHORIZED", statusCode: 401, name: "APIError", … }
status    "UNAUTHORIZED"
body    { code: "UNAUTHORIZED", message: "Unauthzed to create a todo" }
code    "INVALID_EMAIL_OR_PASSWORD"
message    "Invalid email or password"
headers    {}
statusCode    401
name    "APIError"
message    "Unauthzed to create a todo"
_tag    "AuthProviderError"
Was this page helpful?