You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to send messages to SLACK's WEB API (https://api.slack.com/web)
However, when you HTTP POST a message to Slack, it requires specific key/values.
Webhook URLs for Your Workspace
To dispatch messages with your webhook URL, send your message in JSON as the body of an application/json POST request.
POST /api/conversations.create
Content-type: application/json
Authorization: Bearer xoxa-xxxxxxxxx-xxxx
{"name":"something-urgent"}
or
POST /api/chat.postMessage
Content-type: application/json
Authorization: Bearer xoxa-xxxxxxxxx-xxxx
{"channel":"C061EG9SL","text":"I hope the tour went well, Mr. Wonka.","attachments":[{"text":"Who wins the lifetime supply of chocolate?","fallback":"You could be telling the computer exactly what it can do with a lifetime supply of chocolate.","color":"#3AA3E3","attachment_type":"default","callback_id":"select_simple_1234","actions":[{"name":"winners_list","text":"Who should win?","type":"select","data_source":"users"}]}]}
Steps to reproduce the problem
Create a free SLACK account, and follow instructions as posted to create a SLACK APP (https://api.slack.com/slack-apps) and generate your token and web hook url.
Summary
I am trying to send messages to SLACK's WEB API (https://api.slack.com/web)
However, when you HTTP POST a message to Slack, it requires specific key/values.
Webhook URLs for Your Workspace
To dispatch messages with your webhook URL, send your message in JSON as the body of an application/json POST request.
POST /api/conversations.create
Content-type: application/json
Authorization: Bearer xoxa-xxxxxxxxx-xxxx
{"name":"something-urgent"}
or
POST /api/chat.postMessage
Content-type: application/json
Authorization: Bearer xoxa-xxxxxxxxx-xxxx
{"channel":"C061EG9SL","text":"I hope the tour went well, Mr. Wonka.","attachments":[{"text":"Who wins the lifetime supply of chocolate?","fallback":"You could be telling the computer exactly what it can do with a lifetime supply of chocolate.","color":"#3AA3E3","attachment_type":"default","callback_id":"select_simple_1234","actions":[{"name":"winners_list","text":"Who should win?","type":"select","data_source":"users"}]}]}
Steps to reproduce the problem
Create a free SLACK account, and follow instructions as posted to create a SLACK APP (https://api.slack.com/slack-apps) and generate your token and web hook url.
Eaxmple Curl command:
curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/THSJ904I/ASFJK994/LKJSF80923R54
Your Setup
Single Master - 16 slaves
Use Ansible for paralleling setup and setting configs.
Mostly use Python plugins.
Operating system and version?
RHEL 7.5
Node.js version?
v6.14.3
Cronicle software version?
Cronicle Version 0.8.6
Are you using a multi-server setup, or just a single server?
Multi-Server
Are you using the filesystem as back-end storage, or S3/Couchbase?
Filesystem
Can you reproduce the crash consistently?
Cronicle just doesn't send anything.
Log Excerpts
The text was updated successfully, but these errors were encountered: