Certain Slack API calls can be restricted in enterprise workspaces, and if these are made, the workspace fails to initialize. These calls should be configurable to be optional to avoid this.
[2024-06-26 15:16:10.714] DEBUG[48391]: module.c:277 __bbs_require_module: Module dependency 'net_irc.so' is satisfied
[2024-06-26 15:16:10.714] DEBUG[48541]: thread.c:106 thread_register: Thread 48541 spawned from slack_relay_run started by thread 48391 at mod_slack.c:1314 start_clients()
[2024-06-26 15:16:10.894] DEBUG[48541]: curl.c:292 bbs_curl_get: cURL GET: https://slack.com/api/users.list?token=...&limit=500
[2024-06-26 15:16:15.627] DEBUG[48541]: curl.c:247 curl_common_run: CURL Response Code: 200 - 811773 bytes (https://slack.com/api/users.list?token=...&limit=500)
[2024-06-26 15:16:15.652] DEBUG[48541]: mod_slack.c:267 load_single_user: Fetched user workspace1/...
[2024-06-26 15:16:15.844] DEBUG[48541]: mod_slack.c:267 load_single_user: Fetched user workspace1/...
[2024-06-26 15:16:15.849] DEBUG[48541]: curl.c:292 bbs_curl_get: cURL GET: https://slack.com/api/users.conversations?token=...&exclude_archived=true&types=public_channel,private_channel
[2024-06-26 15:16:15.918] DEBUG[48541]: curl.c:247 curl_common_run: CURL Response Code: 200 - 47 bytes (https://slack.com/api/users.conversations?token=...&exclude_archived=true&types=public_channel,private_channel)
[2024-06-26 15:16:15.919] WARNING[48541]: mod_slack.c:227 slack_curl_get: Slack API request failed: {"ok":false,"error":"enterprise_is_restricted"}
[2024-06-26 15:16:15.920] ERROR[48541]: mod_slack.c:1303 slack_relay_run: Failed to set up Slack relay workspace1
[2024-06-26 15:16:15.920] DEBUG[48541]: thread.c:140 __thread_unregister: Thread 48541 is exiting (must be joined)
Skipping the users.conversations
API call resolves this issue.
You must be