Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] /api/notice/rules 409 #2467

Open
1 task done
xiaoqiqiya opened this issue Aug 5, 2024 · 5 comments
Open
1 task done

[BUG] /api/notice/rules 409 #2467

xiaoqiqiya opened this issue Aug 5, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@xiaoqiqiya
Copy link

Is there an existing issue for this?

  • 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

@pwallk
Copy link
Contributor

pwallk commented Aug 5, 2024

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

@xiaoqiqiya
Copy link
Author

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

@xiaoqiqiya
Copy link
Author

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}

@pwallk
Copy link
Contributor

pwallk commented Aug 6, 2024

pr #2090

@bookc-man
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

3 participants