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

Can not send Slack message #34

Open
duanvnc opened this issue Feb 26, 2021 · 2 comments
Open

Can not send Slack message #34

duanvnc opened this issue Feb 26, 2021 · 2 comments

Comments

@duanvnc
Copy link

duanvnc commented Feb 26, 2021

Hi there,

I have been setup Lambda and Codepipelines successfully and the Cloudwatch Event is working now. The Slack Tokens are work with #builds channel as well.

However, Lambda function seems not works, I always received an error message like this:

list indices must be integers, not str: TypeError
Traceback (most recent call last):
  File "/var/task/notifier.py", line 98, in run
    m = process(event)
  File "/var/task/notifier.py", line 90, in process
    if event['source'] == "aws.codepipeline":
TypeError: list indices must be integers, not str

Anyone knows why?

Thank you so much!

@paulcookie
Copy link

Same stuff

@paulcookie
Copy link

Looks like it's due this deprecations https://api.slack.com/methods/channels.list

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

2 participants