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

Remove empty text element due to errors #715

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

ctbfourone
Copy link
Contributor

Got an error on the last attempted deploy:
[WARN] web-api:WebClient:0 The top-level `text` argument is missing in the request payload for a chat.postMessage call - It's a best practice to always provide a `text` argument when posting a message. The `text` is used in places where the content cannot be rendered such as: system push notifications, assistive technology such as screen readers, etc. [WARN] web-api:WebClient:0 Additionally, the attachment-level `fallback` argument is missing in the request payload for a chat.postMessage call - To avoid this warning, it is recommended to always provide a top-level `text` argument when posting a message. Alternatively, you can provide an attachment-level `fallback` argument, though this is now considered a legacy field (see https://api.slack.com/reference/messaging/attachments#legacy_fields for more details). Error: web-api:WebClient:0 failed to match all allowed schemas [json-pointer:/attachments/0/blocks/1/fields/3] Error: web-api:WebClient:0 must be more than 0 characters [json-pointer:/attachments/0/blocks/1/fields/3/text] Error: Error: An API error occurred: invalid_attachments

The "text": element was empty, so this simply removes it. We can add it back later if it's needed.

@ctbfourone ctbfourone requested a review from a team as a code owner November 2, 2023 20:14
@ctbfourone ctbfourone merged commit be5dd83 into master Nov 2, 2023
3 checks passed
@ctbfourone ctbfourone deleted the slack-notifs-update branch November 2, 2023 21:16
@ctbfourone
Copy link
Contributor Author

Danke!

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

Successfully merging this pull request may close these issues.

2 participants