slackhq / slack-api-docs

API Docs for Slack.com
https://api.slack.com/
426 stars 85 forks source link

Plain string body returned by the REST API #69

Open azazdeaz opened 7 years ago

azazdeaz commented 7 years ago

Hi, somtimes i'm getting the following string body from the slack API as an error response for a POST: You are sending too many requests. Please relax. instead of a JSON like:

{
  "ok": false,
  "error": "You are sending too many requests. Please relax."
}

is this a bug in the slack API or we should expect plain string responses for errors like this?

woverton commented 7 years ago

Any updates on this?

roberthawdon commented 7 years ago

This is throwing exceptions on Slack's own python-rtmbot. Which, as I have systemd set to restart my bot automatically on error, causes even more requests to be fired at the API.