# API throwing 500 errors

**URL:** <https://discuss.dev.twitch.com/t/api-throwing-500-errors/1587>\
**Category:** API\
**Created:** [February 8, 2015, 10:38pm UTC](https://discuss.dev.twitch.com/t/api-throwing-500-errors/1587 "2015-02-08T22:38:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ponny](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/ponny/32/127_2.png) [@Ponny](https://discuss.dev.twitch.com/u/Ponny)\
**Post date:** [February 8, 2015, 10:38pm UTC](https://discuss.dev.twitch.com/t/api-throwing-500-errors/1587/1 "2015-02-08T22:38:59Z")

</div>

We’ve been getting a vast number of HTTP 500 errors when doing post calls to the API (mostly ‘follow user’). It’s happened 542 times for 230 of our users in the last two weeks (with most being from the last couple of days). Is there any way to contact Twitch directly about these issues?

```
Response: {"error"=>"Internal Server Error", "status"=>500, "message"=>nil}
Headers: {"server"=>["nginx"], "date"=>["Sun, 08 Feb 2015 22:33:41 GMT"], "content-type"=>["application/json; charset=utf-8"], "content-length"=>["61"], "connection"=>["keep-alive"], "status"=>["500 Internal Server Error"], "x-api-version"=>["3"], "cache-control"=>["max-age=0, private, must-revalidate"], "vary"=>["Accept-Encoding"], "x-ua-compatible"=>["IE=Edge,chrome=1"], "x-request-id"=>["..."], "x-runtime"=>["0.437454"], "accept-ranges"=>["bytes"], "x-varnish"=>["4078433705"], "age"=>["0"], "via"=>["1.1 varnish"], "x-mh-cache"=>["appcache1; M"]}>
```

---

<div class="post-metadata">

**Author:** ![night](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/night/32/1613_2.png) [@night](https://discuss.dev.twitch.com/u/night)\
**Post date:** [February 9, 2015, 6:00am UTC](https://discuss.dev.twitch.com/t/api-throwing-500-errors/1587/2 "2015-02-09T06:00:27Z")

</div>

Related:

> **[502 Bad Gateway on API Calls causing up to 60% failure rate for cron jobs](https://discuss.dev.twitch.com/t/502-bad-gateway-on-api-calls-causing-up-to-60-failure-rate-for-cron-jobs/1574/3)**
>
> Yes our API is flaky, yes we are working on increasing it’s stability. Most of our apps have retry logic to minimize the impact of a request failing, I’d recommend the same approach for your cron jobs. Just make sure to cap the number of retries...

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [February 19, 2015, 6:01am UTC](https://discuss.dev.twitch.com/t/api-throwing-500-errors/1587/3 "2015-02-19T06:01:40Z")

</div>

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