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

Sending notification is marked as successful on an "invalid_blocks" response #418

Open
alexeyr-ci opened this issue Jun 27, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@alexeyr-ci
Copy link

Orb version:

4.11.0

What happened:

I tried to include CircleCI artifact URLs as "type": "image" blocks. This lead to

The response from the API call to Slack can be found below. To view redacted values, rerun the job with SSH and access: slack-orb-logs.FVj3A8/response.json
{"ok":false,"error":"invalid_blocks","errors":["downloading image failed [json-pointer:\/blocks\/2\/image_url]","downloading image failed [json-pointer:\/blocks\/3\/image_url]","downloading image failed [json-pointer:\/blocks\/4\/image_url]","downloading image failed [json-pointer:\/blocks\/5\/image_url]","downloading image failed [json-pointer:\/blocks\/6\/image_url]","downloading image failed [json-pointer:\/blocks\/7\/image_url]","downloading image failed [json-pointer:\/blocks\/8\/image_url]","downloading image failed [json-pointer:\/blocks\/9\/image_url]","downloading image failed [json-pointer:\/blocks\/10\/image_url]","downloading image failed [json-pointer:\/blocks\/11\/image_url]"],"warning":"missing_charset","response_metadata":{"messages":["[ERROR] downloading image failed [json-pointer:\/blocks\/2\/image_url]","[ERROR] downloading image failed [json-pointer:\/blocks\/3\/image_url]","[ERROR] downloading image failed [json-pointer:\/blocks\/4\/image_url]","[ERROR] downloading image failed [json-pointer:\/blocks\/5\/image_url]","[ERROR] downloading image failed [json-pointer:\/blocks\/6\/image_url]","[ERROR] downloading image failed [json-pointer:\/blocks\/7\/image_url]","[ERROR] downloading image failed [json-pointer:\/blocks\/8\/image_url]","[ERROR] downloading image failed [json-pointer:\/blocks\/9\/image_url]","[ERROR] downloading image failed [json-pointer:\/blocks\/10\/image_url]","[ERROR] downloading image failed [json-pointer:\/blocks\/11\/image_url]"],"warnings":["missing_charset"]}}
Slack API returned an error message:
"invalid_blocks"

but the step is marked as successful
image

Expected behavior:

I expect it to be shown as a failure. In my case it doesn't affect the overall job status, since this notification is only sent on failure anyway, but it could matter in other cases.

Additional Information:

@mayank0202
Copy link

Please use circleci/slack@4.12.6 and everything will be resolved

@marboledacci marboledacci self-assigned this Sep 11, 2024
@marboledacci
Copy link
Contributor

@alexeyr-ci In case this is still happening could you please provide more details. The executor and shell config you are using. And an example of the block you are posting.

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