# Problem validating API Key

**URL:** https://discuss.roboflow.com/t/problem-validating-api-key/6622
**Category:** 🤝  Community Help
**Tags:** bugs, export
**Created:** [July 25, 2024, 4:27pm UTC](https://discuss.roboflow.com/t/problem-validating-api-key/6622 "2024-07-25T16:27:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Omar\_Eltouny](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/omar_eltouny/32/5170_2.png) [@Omar\_Eltouny](https://discuss.roboflow.com/u/Omar_Eltouny)
#### Post date: [July 25, 2024, 4:27pm UTC](https://discuss.roboflow.com/t/problem-validating-api-key/6622/1 "2024-07-25T16:27:28Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)
#### Post date: [August 15, 2024, 4:27pm UTC](https://discuss.roboflow.com/t/problem-validating-api-key/6622/2 "2024-08-15T16:27:33Z")

</div>

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