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

Can't run lab 0 on Google Collab: 401 even though I refreshed the API key several times #22

Open
mheiber opened this issue Jun 7, 2024 · 5 comments

Comments

@mheiber
Copy link

mheiber commented Jun 7, 2024

The line:

grade_lab0_ex1(observables) is failing with:

Failed: 401 Client Error: Unauthorized for url: https://auth.quantum.ibm.com/api/users/loginWithToken

even though I set an API key and confirmed that the environment variable is set. I also tried generating a new API key and re-running several times. I see there was a recent issue (https://docs.quantum.ibm.com/announcements/service-alerts/2024-06-05-api-token-refresh) that required a token refresh, but several refreshes didn't solve the problem.

Thanks for your work on the June challenge and cool platform and learning materials.

@HuangJunye
Copy link
Collaborator

HuangJunye commented Jun 7, 2024

@mheiber Welcome to the challenge! Sorry to hear that you are facing the issue. What you have tried should have fixed the issues in most cases that I have encountered. I am not sure what the problem is. However, you mentioned that you are using Google Colab. Can you please try installing Jupyter notebook / JupyterLab on your local machine and run the notebooks? https://jupyter.org/

@abhik-99
Copy link

abhik-99 commented Jun 9, 2024

I am having the same issue on Google Colab.

@reiyareiyareiya
Copy link

reiyareiyareiya commented Jun 10, 2024

I am trying to my local machine, but I have an error, which is "401 Client Erro"

@mheiber
Copy link
Author

mheiber commented Jun 10, 2024

@HuangJunye thanks for the welcome. I also tried running the notebook for Lab 0 locally and hit a different problem: #21

@jlyw1017
Copy link

I am having the same issue, for lab 1.
Submitting your answer. Please wait...
Failed: 401 Client Error: Unauthorized for url: https://auth.quantum.ibm.com/api/users/loginWithToken
I succeed earlier today but not now, even after update the token. I tried the succeed ones and now they are failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants