Comments (6)
in machine/clients/singletons/slack.py, the payload data structure seems to have changed... what was (payload['data']['user']) is now (payload['user']) .... at least for _on_user_change
from slack-machine.
I will have a look at it. Is there any action in Slack that guarantees triggering this error, so I can reproduce?
from slack-machine.
Also @dorel14 please use triple back-ticks next time so your stack trace is readable :)
Now you can see
Each line
Separately
from slack-machine.
Here it is :) my logs are now well formatted
I think it is each time slack machine send a message and have to set a listener in case someone answer to this message
from slack-machine.
Hi also have this kind of message when creating a new channel
[2022-02-15 09:20:34][ERROR] slack_sdk.rtm_v2 __init__.py:run_message_listeners:338 | Failed to run a message listener: 'data'
Traceback (most recent call last):
File "/home/devsupportbot/lib/python3.6/site-packages/slack_sdk/rtm_v2/__init__.py", line 336, in run_message_listeners
listener(self, message)
File "/home/devsupportbot/lib/python3.6/site-packages/slack_sdk/rtm_v2/__init__.py", line 172, in new_message_listener
func(_self, event)
File "/home/devsupportbot/lib/python3.6/site-packages/machine/clients/singletons/slack.py", line 126, in <lambda>
lambda client, event: self._on_channel_created(client, event))
File "/home/devsupportbot/lib/python3.6/site-packages/machine/clients/singletons/slack.py", line 86, in _on_channel_created
channel_resp = self.web_client.conversations_info(channel=payload['data']['channel']['id'])
KeyError: 'data'
from slack-machine.
I fixed this in v0.25.0. Please upgrade
from slack-machine.
Related Issues (20)
- Issue with slackclient 2.7.3 HOT 3
- Easy way to process "listen_to" and "respond_to" without duplicating the regex? HOT 2
- Slack api im.open method has been removed HOT 5
- Move to python-slack-sdk HOT 2
- Replace Travis CI with Github Actions HOT 1
- Move to Events API instead of RTM API HOT 1
- Replace implementations of `*_scheduled` methods with calls to `chat.scheduleMessage` HOT 1
- More flexible python requirements? HOT 1
- Allow user to provide their own logging configuration
- Remove HBase storage plugin HOT 1
- Async support HOT 9
- Introduce structured logging HOT 2
- Add documentation on how to deploy slack-machine
- Add webhook functionality
- How do I set my bot user's icon? HOT 2
- Automatic releases HOT 2
- Can't change log level and use slack-machine logger HOT 2
- Auto-generate app manifests and optionally create Slack app through API
- Overhaul help texts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-machine.