Describe the bug
If an aircraft doesn't have an ImageURL, the formatRegistration method returns an empty string. This creates a block field in the Slack message of:
...
{
"type": "mrkdwn",
"text": ""
},
...
To Reproduce
Steps to reproduce the behavior:
Add a Slack webhook URL
Run the application
After finding any number of aircraft, the Slack message isn't sent and a 400 message is displayed.
Expected behavior
Slack messages should be sent, even if the registration info isn't present.
Screenshots
Desktop (please complete the following information):
OS: Windows
Browser: N/A
Version: 1.26.1
Smartphone (please complete the following information):
Device: N/A
OS: N/A
Browser: N/A
Version: N/A
Additional context
I was able to verify this issue with the Slack Block Kit Builder. When manually adding in any text into the "Registration" block, it formatted properly.
Describe the bug If an aircraft doesn't have an
ImageURL
, theformatRegistration
method returns an empty string. This creates a block field in the Slack message of:To Reproduce Steps to reproduce the behavior:
Expected behavior Slack messages should be sent, even if the registration info isn't present.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context I was able to verify this issue with the Slack Block Kit Builder. When manually adding in any text into the "Registration" block, it formatted properly.