mlco2 / mlco2/codecarbon

[API] Missing token returns Generic error

Open
#692 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

API bug Dashboard
Dominant language
Python
Stars
1.9k
Forks
323
Avg merge
1d 12h
Merged PRs (30d)
12

Description

When the access token is deprecated or it is missing, any action on the UI will redirect to a blank page with

{
"detail": "Generic error"
}

How to reproduce

Open the UI. Remove the user token.

Ideal solution

Redirect to the login page

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the UI by removing the user token and performing an action, then trace the API error handling and authentication redirect. Done when a missing or deprecated token sends the user to the login page instead of a blank page showing the Generic error.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.