# I am receiving 500s intermittently while using the rest api to retrieve codecoverage metrics

**URL:** <https://community.codecov.com/t/i-am-receiving-500s-intermittently-while-using-the-rest-api-to-retrieve-codecoverage-metrics/1270>\
**Category:** Bug Fixes\
**Created:** [April 14, 2020, 12:46pm UTC](https://community.codecov.com/t/i-am-receiving-500s-intermittently-while-using-the-rest-api-to-retrieve-codecoverage-metrics/1270 "2020-04-14T12:46:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agyant](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@agyant](https://community.codecov.com/u/agyant)\
**Post date:** [April 14, 2020, 12:46pm UTC](https://community.codecov.com/t/i-am-receiving-500s-intermittently-while-using-the-rest-api-to-retrieve-codecoverage-metrics/1270/1 "2020-04-14T12:46:22Z")

</div>

### Description

I am retrieving the code coverage metrics using the following rest endpoint:  
[https://codecov.io/api/gh/org/repo/branch/master/commits?limit=1](https://codecov.io/api/gh/org/repo/branch/master/commits?limit=1)  
and I am getting a 500 back for some calls with the following response:  
{  
“meta”: {  
“status”: 500  
},  
“error”: {  
“reason”: “Unknown”,  
“context”: null  
}  
}

### Repository

Private

### Steps to Reproduce

1. Login to codecov
2. Open [https://codecov.io/api/gh/](https://codecov.io/api/gh/)//branch/master/commits?limit=1 and keep refreshing
3. Some of the calls will fail with 500s

**Expected behavior:** Should get 200s for all calls

**Actual behavior:** I am getting 500s for some calls

**Flakiness?** Sometimes

### Versions

Chrome and Mac Mojave version 10.14.6

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [May 8, 2020, 2:48pm UTC](https://community.codecov.com/t/i-am-receiving-500s-intermittently-while-using-the-rest-api-to-retrieve-codecoverage-metrics/1270/2 "2020-05-08T14:48:04Z")

</div>

Sorry for the delay in responding. Is this still happening? It looks like you are a paid customer, so if so can you please open a ticket so we can gather more information on this error?
