qa-guru / allure-notifications

jar, that draws piechart from results and sends it with link to build to messenger
Apache License 2.0
467 stars 73 forks source link

Error when sending reports to slack. #273

Open SuNseTgReeN opened 3 weeks ago

SuNseTgReeN commented 3 weeks ago

Discussed in https://github.com/qa-guru/allure-notifications/discussions/272

Originally posted by **SuNseTgReeN** June 11, 2024 When sending the report, I get the following error: ``` 2024-06-11 11:32:44 INFO Notification:44 - Sending message... 2024-06-11 11:32:44 ERROR Application:30 - null java.lang.NullPointerException: null at kong.unirest.BodyPart.(BodyPart.java:40) ~[allure-notifications-4.6.1.jar:?] at kong.unirest.ParamPart.(ParamPart.java:[37](https://git.appkode.ru/qa_team/liteforex-postman-api-tests/-/jobs/1074937#L37)) ~[allure-notifications-4.6.1.jar:?] at kong.unirest.ParamPart.(ParamPart.java:33) ~[allure-notifications-4.6.1.jar:?] at kong.unirest.HttpRequestMultiPart.field(HttpRequestMultiPart.java:48) ~[allure-notifications-4.6.1.jar:?] at guru.qa.allure.notifications.clients.slack.SlackClient.sendPhoto(SlackClient.java:[38](https://git.appkode.ru/qa_team/liteforex-postman-api-tests/-/jobs/1074937#L38)) ~[allure-notifications-4.6.1.jar:?] at guru.qa.allure.notifications.clients.Notification.send(Notification.java:46) ~[allure-notifications-4.6.1.jar:?] at guru.qa.allure.notifications.Application.startApplication(Application.java:28) [allure-notifications-4.6.1.jar:?] at guru.qa.allure.notifications.Application.main(Application.java:15) [allure-notifications-4.6.1.jar:?] Cleaning up project directory and file based variables 00:07 ERROR: Job failed: exit code 1 ``` At the same time, sending a message in telegram works in the same pipeline. I set up the bot according to [this](https://github.com/qa-guru/allure-notifications/wiki/Stack-configuration ) to the guide. Can you tell me what I could have done wrong, and how to solve this problem?
SuNseTgReeN commented 2 weeks ago

It was found out that slack replaced the methods of sending messages. Now 3 new methods are used instead of 1.

valfirst commented 4 days ago

@SuNseTgReeN could you please provide more details?