0xZXDX / sentry-dingding

Sentry钉钉通知
MIT License
112 stars 59 forks source link

'Event' object has no attribute 'id' #22

Open wusb opened 4 years ago

wusb commented 4 years ago
image
Liubasara commented 4 years ago

同遇到这个问题,请问有解决方法吗

WisZhou commented 4 years ago

使用第三方fork: https://github.com/WisZhou/sentry-dingding

自己fork或修改已安装包代码: sentry_dingding/plugin.py 61行: url=u"{}events/{}/".format(group.get_absolute_url(), event.id), -> url=u"{}events/{}/".format(group.get_absolute_url(), event.event_id)

BUG FIX PR:https://github.com/anshengme/sentry-dingding/pull/23

参考sentry官方models定义 https://github.com/getsentry/sentry/blob/master/src/sentry/eventstore/models.py https://github.com/getsentry/sentry/commit/5e7a2c871d4f123d55c2ceb5f2aa1424c381e562#diff-e0d994d6b740db1b3ece3cb6c10ba419

FeSeason commented 4 years ago

@simbawus https://github.com/cench/sentry-10-dingding