title: Getting 500 error when using Slack's incoming Webhook via a Ruby rest_client
body: <p>I use the following to post to <a href="https://en.wikipedia.org/wiki/Slack_(software)" rel="nofollow">Slack's</a> <a href="https://api.slack.com/incoming-webhooks" rel="nofollow">incoming Webhook</a>:</p>
  
  <pre><code>slack_incoming_webhook = 'URL....."
  payload={
          "text"=&gt; bot_response[:bot_response],
           "channel"=&gt;"@mememem"
      }
  
  jsonresponse = RestClient.post slack_incoming_webhook, payload, :content_type =&gt; 'application/json'
  </code></pre>
  
  <p><strong>I get the following error:</strong></p>
  
  <blockquote>
    <p>RestClient::InternalServerError: 500 Internal Server Error</p>
  </blockquote>
  
  <p>The post appears to be posting correctly when I check it on request_bin, so I am unclear how to resolve this error.</p>