code-pipeline-slack icon indicating copy to clipboard operation
code-pipeline-slack copied to clipboard

Can not send Slack message

Open duanvnc opened this issue 4 years ago • 2 comments

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!

duanvnc avatar Feb 26 '21 02:02 duanvnc

Same stuff

paulcookie avatar Mar 01 '21 12:03 paulcookie

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

paulcookie avatar Mar 01 '21 12:03 paulcookie