hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[BUG] /api/notice/rules 409

Open xiaoqiqiya opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

An exception occurred while calling convertToEntityAttribute on converter class org.apache.hertzbeat.common.entity.manager.JsonLongListAttributeConverter with value

Expected Behavior

No response

Steps To Reproduce

No response

Environment

HertzBeat version(s):v1.6

Debug logs

No response

Anything else?

No response

xiaoqiqiya avatar Aug 05 '24 06:08 xiaoqiqiya

You can check whether the receiver_id field of the hzb_notice_rule table conforms to the JSON format and change it manually first. It would be better if you could explain the operation in detail

pwallk avatar Aug 05 '24 07:08 pwallk

我是老版本升级,然后打开“告警通知”就报错了。receiver_id 为1

xiaoqiqiya avatar Aug 06 '24 01:08 xiaoqiqiya

post:/api/notice/rule 参数:{"enable":true,"filterAll":true,"templateId":null,"name":"开启钉钉推送","receiverId":[2],"receiverName":["dingding-DingDing"],"templateName":null,"tags":[]} 响应:{"data":null,"msg":"Could not commit JPA transaction","code":4}

xiaoqiqiya avatar Aug 06 '24 02:08 xiaoqiqiya

pr #2090

pwallk avatar Aug 06 '24 02:08 pwallk

同步一下数据库结构就OK了

bookc-man avatar Nov 07 '24 09:11 bookc-man