slack-api-docs icon indicating copy to clipboard operation
slack-api-docs copied to clipboard

Plain string body returned by the REST API

Open azazdeaz opened this issue 8 years ago • 2 comments

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?

azazdeaz avatar Nov 22 '16 09:11 azazdeaz

Any updates on this?

woverton avatar Feb 06 '17 12:02 woverton

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.

roberthawdon avatar May 03 '17 19:05 roberthawdon