Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting TypeError: list() got an unexpected keyword argument 'cursor' from starting app #231

Open
s905060 opened this issue Sep 29, 2022 · 4 comments

Comments

@s905060
Copy link

s905060 commented Sep 29, 2022

File "/usr/local/lib/python3.9/dist-packages/slackbot/bot.py", line 20, in __init__
   self._client = SlackClient(
 File "/usr/local/lib/python3.9/dist-packages/slackbot/slackclient.py", line 60, in __init__
   self.rtm_connect()
 File "/usr/local/lib/python3.9/dist-packages/slackbot/slackclient.py", line 65, in rtm_connect
   self.parse_slack_login_data(reply)
 File "/usr/local/lib/python3.9/dist-packages/slackbot/slackclient.py", line 87, in parse_slack_login_data
   self.parse_user_data(self.list_users())
 File "/usr/local/lib/python3.9/dist-packages/slackbot/slackclient.py", line 78, in list_users
   return webapi_generic_list(self.webapi, 'users', 'members')
 File "/usr/local/lib/python3.9/dist-packages/slackbot/slackclient.py", line 30, in webapi_generic_list
   response = getattr(webapi, resource_key).list(**args)
TypeError: list() got an unexpected keyword argument 'cursor'
@hugolgst
Copy link

hugolgst commented Oct 6, 2022

Did you manage to solve it?

@savio-tran
Copy link

Have ever find a solution for this? I'm getting the same error.

@savio-tran
Copy link

[10/27/2022 10:39:36] Getting next page for users (1000 collected)
Traceback (most recent call last):
File "run.py", line 23, in
main()
File "run.py", line 19, in main
bot = Bot()
File "/src/lins05/slackbot/slackbot/bot.py", line 20, in init
self._client = SlackClient(
File "/src/lins05/slackbot/slackbot/slackclient.py", line 60, in init
self.rtm_connect()
File "/src/lins05/slackbot/slackbot/slackclient.py", line 65, in rtm_connect
self.parse_slack_login_data(reply)
File "/src/lins05/slackbot/slackbot/slackclient.py", line 87, in parse_slack_login_data
self.parse_user_data(self.list_users())
File "/src/lins05/slackbot/slackbot/slackclient.py", line 78, in list_users
return webapi_generic_list(self.webapi, 'users', 'members')
File "/src/lins05/slackbot/slackbot/slackclient.py", line 30, in webapi_generic_list
response = getattr(webapi, resource_key).list(**args)
TypeError: list() got an unexpected keyword argument 'cursor'

@veselyvojtech
Copy link

This list method of the Users class is called here. It doesn't expect the cursor argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants