[ЗПА] Помилка у Сelery send_slack_notification_on_challenge_initiated
Загалом send_slack_notification_on_challenge_initiated працює, помилка була тільки в 1 тасці, ймовірно, данні у заявці зломали верстку сповіщення
[2024-05-29 15:34:04,825: INFO/ForkPoolWorker-2] marketplace_portal.auction_selection.tasks.send_slack_notification_on_challenge_initiated[0473901f-98ce-4bc5-800f-91ed972ca65c]: Task marketplace_portal.auction_selection.tasks.send_slack_notification_on_challenge_initiated[0473901f-98ce-4bc5-800f-91ed972ca65c] succeeded in 0.23348843300482258s: None
[2024-05-29 15:34:04,854: ERROR/ForkPoolWorker-1] marketplace_portal.auction_selection.tasks.send_slack_notification_on_challenge_initiated[5c51aef0-edb9-4670-a8a0-30eec6fc6965]: The request to the Slack API failed. (url: https://www.slack.com/api/chat.postMessage)
The server responded with: {'ok': False, 'error': 'invalid_blocks', 'errors': ['must provide at least 1 items [json-pointer:/blocks/1/fields]'], 'response_metadata': {'messages': ['[ERROR] must provide at least 1 items [json-pointer:/blocks/1/fields]']}}
[2024-05-29 15:34:04,906: INFO/MainProcess] Task marketplace_portal.auction_selection.tasks.send_slack_notification_on_challenge_initiated[5c51aef0-edb9-4670-a8a0-30eec6fc6965] received
[2024-05-29 15:34:04,913: INFO/ForkPoolWorker-1] marketplace_portal.auction_selection.tasks.send_slack_notification_on_challenge_initiated[5c51aef0-edb9-4670-a8a0-30eec6fc6965]: Task marketplace_portal.auction_selection.tasks.send_slack_notification_on_challenge_initiated[5c51aef0-edb9-4670-a8a0-30eec6fc6965] retry: Retry in 300s: SlackApiError("The request to the Slack API failed. (url: https://www.slack.com/api/chat.postMessage)\nThe server responded with: {'ok': False, 'error': 'invalid_blocks', 'errors': ['must provide at least 1 items [json-pointer:/blocks/1/fields]'], 'response_metadata': {'messages': ['[ERROR] must provide at least 1 items [json-pointer:/blocks/1/fields]']}}")
[2024-05-29 15:34:04,915: CRITICAL/MainProcess] Unrecoverable error: TypeError("__init__() missing 1 required positional argument: 'response'")
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/celery/worker/worker.py", line 203, in start
self.blueprint.start(self)
File "/usr/local/lib/python3.9/site-packages/celery/bootsteps.py", line 116, in start
step.start(parent)
File "/usr/local/lib/python3.9/site-packages/celery/bootsteps.py", line 365, in start
return self.obj.start()
File "/usr/local/lib/python3.9/site-packages/celery/worker/consumer/consumer.py", line 326, in start
blueprint.start(self)
File "/usr/local/lib/python3.9/site-packages/celery/bootsteps.py", line 116, in start
step.start(parent)
File "/usr/local/lib/python3.9/site-packages/celery/worker/consumer/consumer.py", line 618, in start
Edited by Anastasiia Leshkevych