megaease / easeprobe

A simple, standalone, and lightweight tool that can do health/status checking, written in Go.
Apache License 2.0
2.07k stars 215 forks source link

Failure([lark / lark alert service / Notification] failed after 3 retries - Error response from Lark - code [19024] - msg [Key Words Not Found]) - failed to send! #468

Closed xcrossed closed 7 months ago

xcrossed commented 7 months ago

Environment (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. config notify lark config
  2. write a lark/feishu webhook http url
  3. the log will print feishu server response
  4. see error

Expected behavior notify send success.

samanhappy commented 7 months ago

The Key Words Not Found message is returned by the Lark service, which means you must add specific keywords to the Lark bot configuration, alternatively, you can choose other mechanisms such as whitelisting or using signatures.

suchen-sci commented 7 months ago

It seems this issue is solved, please consider to close it when you are convenient.

xcrossed commented 7 months ago

time="2024-01-10T08:00:00+08:00" level=info msg="[log / log file / SLA] - Overall SLA Report - successfully sent!" time="2024-01-10T08:00:00+08:00" level=warning msg="[lark / lark alert service / SLA] Retried to send 1/3 - Error response from Lark - code [9499] - msg [Bad Request]" time="2024-01-10T08:00:05+08:00" level=warning msg="[lark / lark alert service / SLA] Retried to send 2/3 - Error response from Lark - code [9499] - msg [Bad Request]" time="2024-01-10T08:00:10+08:00" level=warning msg="[lark / lark alert service / SLA] Retried to send 3/3 - Error response from Lark - code [9499] - msg [Bad Request]" time="2024-01-10T08:00:10+08:00" level=error msg="[lark / lark alert service / SLA] - Overall SLA Report([lark / lark alert service / SLA] failed after 3 retries - Error response from Lark - code [9499] - msg [Bad Request]) - failed to send! "

but i seend message to feishu server by tools ,it is ok.

suchen-sci commented 7 months ago

can you provide more information about it? what's your setting?

I create a feishu bot and it works as expected.

image

suchen-sci commented 7 months ago

@xcrossed hi, please check if your problem is still there after pr #472 is merged.

xcrossed commented 7 months ago

@xcrossed hi, please check if your problem is still there after pr #472 is merged.

I will try the new version 2.1.2

xcrossed commented 7 months ago

@xcrossed hi, please check if your problem is still there after pr #472 is merged.

the same error on version 2.1.2

time="2024-01-17T08:00:00+08:00" level=info msg="[log / log file / SLA] - Overall SLA Report - successfully sent!"
time="2024-01-17T08:00:00+08:00" level=warning msg="[lark / lark alert service / SLA] Retried to send 1/3 - Error response from Lark - code [9499] - msg [Bad Request]"
time="2024-01-17T08:00:05+08:00" level=warning msg="[lark / lark alert service / SLA] Retried to send 2/3 - Error response from Lark - code [9499] - msg [Bad Request]"
time="2024-01-17T08:00:10+08:00" level=warning msg="[lark / lark alert service / SLA] Retried to send 3/3 - Error response from Lark - code [9499] - msg [Bad Request]"
time="2024-01-17T08:00:10+08:00" level=error msg="[lark / lark alert service / SLA] - Overall SLA Report([lark / lark alert service / SLA] failed after 3 retries - Error response from Lark - code [9499] - msg [Bad Request]) - failed to send! 
suchen-sci commented 7 months ago

Could you please provide the configuration content to let us test it in our local environment (make sure you mask the secret in the configuration)? Because we test lark and it works. By the information you provided, we can't find the problem.

suchen-sci commented 7 months ago

Hi, can you download the newest version of code from github and use make command to compile it. Then try it again? I am sure this time the error message will provide more information about it.

xcrossed commented 7 months ago

Hi, can you download the newest version of code from github and use make command to compile it. Then try it again? I am sure this time the error message will provide more information about it.

EaseProbe eef3a25e6 2024-01-18T04:30:00Z go1.20.6

It is success.

image
suchen-sci commented 7 months ago

sounds great. if no other problem, please consider to close this issue.