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
{{ message }}
Repository navigation
conversations_list does not return newly created public channels #1159
Hi @gagantrivedi! I went ahead and spent some time trying to reproduce the issue you've described. The only case in which channels returned were "missing" were those channels that were 1.) private and 2.) the app hadn't been added to.
Of the ones that you notice are missing, do they all share the two characteristics listed above?
Your newly created channel can be included in a following page of the API response pagination. If response_metadata.next_cursor in an API response is not empty, conversations.list API has more to return. See also: #1074 (comment)
This Python SDK offers a handy way to iterate with the Slack API pagination. Checking this test code should be helpful to know how to use it.
Activity
misscoded commentedon Jan 6, 2022
Hi @gagantrivedi! I went ahead and spent some time trying to reproduce the issue you've described. The only case in which channels returned were "missing" were those channels that were 1.) private and 2.) the app hadn't been added to.
Of the ones that you notice are missing, do they all share the two characteristics listed above?
seratch commentedon Jan 6, 2022
@gagantrivedi
To add to the things Alissa mentioned, I guess the Slack API pagination might confuse you.
Your newly created channel can be included in a following page of the API response pagination. If
response_metadata.next_cursorin an API response is not empty,conversations.listAPI has more to return. See also: #1074 (comment)This Python SDK offers a handy way to iterate with the Slack API pagination. Checking this test code should be helpful to know how to use it.
gagantrivedi commentedon Jan 6, 2022
Yeah, it was related to pagination. Thanks, @seratch @misscoded