Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run - FiefAuthNotAuthenticatedError error #755

Open
vballoli opened this issue Dec 27, 2024 · 1 comment
Open

Unable to run - FiefAuthNotAuthenticatedError error #755

vballoli opened this issue Dec 27, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@vballoli
Copy link

  • CodeCarbon version: 2.8.2
  • Python version: 3.12.7
  • Operating System: Ubuntu 22

Description

I've installed the package, and after I'm prompted to enter the API (following the video on the docs, I enter localhost:8000) and the configuration simply errors out with

:raises: `fief_client.FiefAccessTokenExpired` if the access token is expired and ╭────────────────────────────────── locals ──────────────────────────────────╮                       │
│   147 │   │   """                                                                              │ refresh = True                                                             │                       │
│   148 │   │   if self._tokens is None:                                                         │    self = <fief_client.integrations.cli.FiefAuth object at 0x7fb504a51d30> │                       │
│ ❱ 149 │   │   │   raise FiefAuthNotAuthenticatedError()                                        ╰────────────────────────────────────────────────────────────────────────────╯                       │
│   150 │   │                                                                                                                                                                                         │
│   151 │   │   access_token = self._tokens["access_token"]                                                                                                                                           │
│   152 │   │   try:                                                                                                                                                                                  │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
FiefAuthNotAuthenticatedError

The documentation on the README is out of date since init no longer exists.

@benoit-cty
Copy link
Contributor

Hello,
Sorry, the video in the documentation is old and use a local server.

Now you can do codecarbon login to connect or create your account on the production server.
Then codecarbon config and codecarbon monitor if you want to monitor your machine.

@benoit-cty benoit-cty added the documentation Improvements or additions to documentation label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants