| name | slack-api-common-issues |
| description | Sub-skill of slack-api: Common Issues (+1). |
| version | 1.0.0 |
| category | business |
| type | reference |
| scripts_exempt | true |
Common Issues (+1)
Common Issues
Issue: Bot not responding to messages
import logging
logging.basicConfig(level=logging.DEBUG)
@app.event("message")
def debug_messages(body, logger):
logger.info(f"Received message event: {body}")
Issue: Interactive components not working
@app.action("button_click")
def handle_click(ack, body, logger):
ack()
logger.info(f"Button clicked: {body}")
Issue: Socket Mode connection drops
from slack_bolt.adapter.socket_mode import SocketModeHandler
handler = SocketModeHandler(
app,
app_token,
ping_interval=30
)
Issue: Message not appearing in channel
def ensure_in_channel(client, channel):
try:
client.conversations_info(channel=channel)
except:
client.conversations_join(channel=channel)
Debug Commands
curl -X POST \
-H "Content-Type: application/json" \
-d '{"text": "Test message"}' \
$SLACK_WEBHOOK_URL
curl -X POST \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
https://slack.com/api/auth.test
curl -X GET \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
"https://slack.com/api/conversations.list?limit=10"