Skip to content

Web Platform: Excessive 401 polling on /users/profile when not logged in #506

@livepeer-tessa

Description

@livepeer-tessa

Description

The web app continuously polls /users/profile even when the user is not logged in, flooding the browser console with 401 errors.

Steps to Reproduce

  1. Open https://app.daydream.live in an incognito/private window (not logged in)
  2. Open browser DevTools → Console
  3. Navigate around the site
  4. Observe repeated 401 errors for https://api.daydream.live/users/profile

Expected Behavior

The app should check authentication state first and avoid making authenticated API calls when the user is clearly not logged in.

Actual Behavior

Continuous polling of /users/profile endpoint regardless of auth state, resulting in:

  • Console spam with 401 errors
  • Unnecessary API calls
  • Potential rate limiting issues

Technical Notes

  • Errors appear every few seconds across all pages
  • Auth state should be determined once and cached

Environment

  • URL: app.daydream.live
  • Found during browser testing on 2026-02-20

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions