-
Notifications
You must be signed in to change notification settings - Fork 144
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
SlackNotifier message notification popup says "no preview available" in Slack desktop client for Windows #180
Comments
It would be great to get this solved! |
I am getting the same thing [No preview available] in notification inside Fedora linux (using web browser slack app) and the same also applies to android mobile slack application. Our slack json looks like this:
|
Looking at the data available. We have |
Which all looks exactly like its been taken care of by this PR already: |
I've setup the SlackNotifier in my GCP build pipeline, everything is working pretty well but when messages come through in the Slack desktop client for Windows, the notification popup says "no preview available" even though the actual message in Slack appears fine.
This seems to be due to the fact that in the WebhookMessage post, the "Text" property is not included and Windows / Slack (on Windows) not supporting rich-text content. Slack documentation suggests including the "Text" property in the payload which will be used as fallback when rich-text is not supported.
More details are available in the StackOverfow issue I posted: https://stackoverflow.com/questions/76657027/google-cloud-build-slack-notifier-message-no-preview-available
The posted answer explains the (suspected) problem and solution and he even created a fork with suggested code changes - onix@e83dab3
The text was updated successfully, but these errors were encountered: