So, i’m trying to integrate sentry plugins, and have some problems with that.
Versions:
Sentry v.8.20.0
Sentry-plugins v.8.20.0
At first - i made custom docker image based at library/centos7 with sentry and sentry-plugins.
Sentry/plugins installation was made by that way at :
clonning *.zip from github
unzip that
and then SENTRY_BUILD=9 pip install .
When i’m trying to test slack integration, i’m getting:
“There was an internal error with the Plugin”
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/sentry/api/endpoints/project_plugin_details.py", line 55, in post
test_results = plugin.test_configuration(project)
File "/usr/lib/python2.7/site-packages/sentry/plugins/bases/notify.py", line 167, in test_configuration
return self.notify(notification)
File "/usr/lib/python2.7/site-packages/sentry_plugins/slack/plugin.py", line 159, in notify
group = event.group
AttributeError: 'NoneType' object has no attribute 'group'
07:12:07 [ERROR] root: Plugin(slack) raised an error during test`
So, i’m trying to modify plugin.py with that: print notification.__dict__ event = notification.event
And get: {'rules': [], 'event': None} None
What i’m doing wrong?
Thx for help.
some upd:
supervisor in docker image is s6-overlay (i really doesn’t think, that this problem chained with workers, but who knows… )
I don’t really know what you’re doing wrong, but I’ll point out a few things:
we don’t support CentOS. This is unlikely this very specific issue, but you will most likely run into other issues based on the number of people who complain about things not working on CentOS right.
the error you’re getting seems more like a cascaded error. During the test plugin thing, it inserts an error into the database, then passes that along for notification. So my guess is that somewhere, something else is failing first. Then passing along bad state here.