Problem validating API Key

I am trying to train a dataset to detect football players on a football pitch. I am using this code snippet to fetch my dataset
from roboflow import Roboflow

rf = Roboflow(api_key=“xxx”)

project = rf.workspace(“roboflow-jvuqo”).project(“football-players-detection-3zvbc”)

dataset = project.version(1).download(“yolov8”)

And I receive this error.
retrying…
retrying…
retrying…
retrying…
retrying…

RuntimeError Traceback (most recent call last)
in <cell line: 7>()
5
6 from roboflow import Roboflow
----> 7 rf = Roboflow(api_key=“xxx”)
8 project = rf.workspace(“roboflow-jvuqo”).project(“football-players-detection-3zvbc”)
9 dataset = project.version(1).download(“yolov8”)

7 frames
/usr/local/lib/python3.10/dist-packages/roboflow/init.py in check_key(api_key, model, notebook, num_retries)
44 return check_key(api_key, model, notebook, num_retries)
45 else:
—> 46 raise RuntimeError(“There was an error validating the api key with Roboflow” " server.")
47 else:
48 r = response.json()

RuntimeError: There was an error validating the api key with Roboflow server.

Thank you for your time.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.