abinoda / slack-action

GitHub Action for posting Slack messages
MIT License
270 stars 37 forks source link

Receiving error when sending basic message - was working #19

Closed DanJ210 closed 4 years ago

DanJ210 commented 4 years ago

Hello, I've been using this. Thanks for creating btw. As of a couple days ago I had stopped receiving the message. All green checkmarks shown, no errors shown. Checking the logs shows this message and I'm not sure why. I've created an action and pasted in the example shown on documentation for this action so is there something I can do to understand what's causing this?

{"ok":false,"error":"json_not_object","warning":"missing_charset","response_metadata":{"warnings":["missing_charset"]}}

This is the basic action getting an error.

on: push
name: Slack Notification Demo
jobs:
    slackNotification:
      name: Slack Notification Demo
      runs-on: ubuntu-latest
      steps:
      - name: Notify slack
        env:
            SLACK_BOT_TOKEN: ${{ secrets.SLACKBOT_TOKEN }}
        uses: pullreminders/slack-action@master
        with:
            args: '{\"channel\":\"GD0RL3545\",\"text\":\"Hello world\"}'
abinoda commented 4 years ago

@DanJ210 Thanks for the report! I think it is due to https://github.com/abinoda/slack-action/pull/18 which I will revert right now

abinoda commented 4 years ago

@DanJ210 Let me know if v1.0.9 which I just released fixes the issue.

DanJ210 commented 4 years ago

@abinoda You're welcome. Looks like it is working now.