API key revoked even after generating new

Hello, I am trying to run code to extract JSON predictions for each frame of my video and save it as a pandas dataframe. However, I am still running into an error.

I have already enabled overages and I have also updated my private API because it was revoked. I’ve also tried opening my jupyter notebook in incognito mode and double-checked to see that I was using the private API key. I don’t understand why I am running into this error still.

from roboflow import Roboflow
rf = Roboflow(api_key=“xxx”)
project = rf.workspace(“fnlidentitylabels”).project(“fnl-character-labeling”)
version = project.version(5)
dataset = version.download(“yolov7”)

Hi there,

Are you still running into this issue? Here is a code snippet to try listing the projects in your workspace.

from roboflow import Roboflow
rf = Roboflow(api_key="XXX")
projects = rf.workspace().projects()
print(projects)

Error has been solved! thank you.