I want to get Scrapinghub Spiders All (e.g Spider Run,Completion,Error) Notification on Slack.
I have created Monitor.py file and Action.py file and also added spidermoon slack settings in my settings.py file.
SPIDERMON_SLACK_SENDER_TOKEN = ''
SPIDERMON_SLACK_SENDER_NAME = ''
SPIDERMON_SLACK_RECIPIENTS = ['']
But Now when i run my spider on scrapinghub its giving me an error .check the blow error
for member in self._api_call('users.list')['members']
KeyError: 'members'
Check Full Error below ...
ERROR: SendSlackMessageSpiderFinished
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/unpacked-eggs/spidermon-288633c-development.dash-addon.egg/spidermon/core/actions.py", line 37, in run <br>
self.run_action()
File "/tmp/unpacked-eggs/spidermon-288633c-development.dash-addon.egg/spidermon/contrib/actions/slack/__init__.py", line 167, in run_action
attachments=attachments,
File "/tmp/unpacked-eggs/spidermon-288633c-development.dash-addon.egg/spidermon/contrib/actions/slack/__init__.py", line 40, in send_message
) for recipient in to]
File "/tmp/unpacked-eggs/spidermon-288633c-development.dash-addon.egg/spidermon/contrib/actions/slack/__init__.py", line 59, in send_message
attachments=attachments,
File "/tmp/unpacked-eggs/spidermon-288633c-development.dash-addon.egg/spidermon/contrib/actions/slack/__init__.py", line 100, in _send_channel_message
icon_url=self.users[self.sender_name]['profile']['image_48'],
File "/tmp/unpacked-eggs/spidermon-288633c-development.dash-addon.egg/spidermon/contrib/actions/slack/__init__.py", line 28, in users
self._users = self._get_users_info()
File "/tmp/unpacked-eggs/spidermon-288633c-development.dash-addon.egg/spidermon/contrib/actions/slack/__init__.py", line 70, in _get_users_info
for member in self._api_call('users.list')['members']
KeyError: 'members'
enter image description here
I did not understand what is this error
PLease help me as soon as possible.