Giter Site home page Giter Site logo

Comments (6)

repudi8or avatar repudi8or commented on June 11, 2024

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.

DonDebonair avatar DonDebonair commented on June 11, 2024

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.

DonDebonair avatar DonDebonair commented on June 11, 2024

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.

dorel14 avatar dorel14 commented on June 11, 2024

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.

dorel14 avatar dorel14 commented on June 11, 2024

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.

DonDebonair avatar DonDebonair commented on June 11, 2024

I fixed this in v0.25.0. Please upgrade

from slack-machine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.