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

Failing to Send Notifications with vague invalid_block error #423

Open
calebstewart opened this issue Jul 12, 2023 · 2 comments
Open

Failing to Send Notifications with vague invalid_block error #423

calebstewart opened this issue Jul 12, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@calebstewart
Copy link

Orb version:

4.10.1

What happened:

Our CircleCI job is failing (well, the notification is failing; the job succeeds. see #418) with the error invalid_blocks. There is no other information given. The output from the job is:

Posting Status
BASH_ENV file: /tmp/.bash_env-64a8995526596f189294e247-0-build
Exists. Sourcing into ENV
Checking For JQ + CURL
Sending to Slack Channel: ***********
Slack API returned an error message:
"invalid_blocks"

The job looks like this:

      - slack/notify:
          event: pass
          custom: |
            {
              "blocks": [
                {
                  "type": "section",
                  "text": {
                    "type": "mrkdwn",
                    "text": "*Deployment succeeded for `$CIRCLE_TAG`!*"
                  }
                },
                {
                  "type": "section",
                  "text": {
                    "type": "mrkdwn",
                    "text": "Release Notes:\n```\n$RELEASE_NOTES```\n"
                  }
                },
                {
                  "type": "section",
                  "text": {
                    "type": "mrkdwn",
                    "text": "<[url-to-github-repo]/blob/$CIRCLE_TAG/CHANGELOG.md|Full Changelog>"
                  }
                },
                {
                  "type": "section",
                  "text": {
                    "type": "mrkdwn",
                    "text": "_pssst <!subteam^[team-id]> <!subteam^[team-id]>_"
                  }
                }
              ]
            }

Expected behavior:

The notification should be posted properly to the slack channel. The blocks above are valid when I open the block builder, and render properly.

Additional Information:

This was working up until about a week and a half to two weeks ago, and the job has not been modified since.

@calebstewart calebstewart added the bug Something isn't working label Jul 12, 2023
@mayank0202
Copy link

Please use circleci/[email protected] and everything will be resolved

@marboledacci
Copy link
Contributor

@calebstewart In case this is still happening could you please provide more details. The executor and shell config you are using.

@marboledacci marboledacci self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants