# 向私人 Slack 频道发送消息时出现 422 错误

**URL:** <https://meta.discourse.org/t/422-error-when-sending-message-to-private-slack-channel/119037>\
**Category:** Product Support\
**Tags:** chat-integration\
**Created:** [2019 年5 月 29 日 21:46 UTC](https://meta.discourse.org/t/422-error-when-sending-message-to-private-slack-channel/119037 "2019-05-29T21:46:30Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![yanokwa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yanokwa/32/105083_2.png) [@yanokwa](https://meta.discourse.org/u/yanokwa)\
发布日期： [2019 年5 月 29 日 21:46 UTC](https://meta.discourse.org/t/422-error-when-sending-message-to-private-slack-channel/119037/1 "2019-05-29T21:46:30Z")

</div>

When I try to send a test message to a private (but previously public) channel, I get a 422 error. When I check the logs, I see this:

```json
Test provider failed {:error_key=>"chat_integration.provider.slack.errors.channel_not_found", :request=>"", :response_code=>"200", :response_body=>"{\"ok\":false,\"error\":\"channel_not_found\"}"}

```

This setup worked when the channel was private. I tried re-installing the Slack app and deleting the rules and recreating them. When I use @username rule or a public channel that seems to work well.

---

_[View the full topic](https://meta.discourse.org/t/422-error-when-sending-message-to-private-slack-channel/119037)._
