-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Does not work properly with Sentry onpremise 20.9.0 #40
Comments
Try installing sentry by using Python2 instead of Python3 (which is default for some time):
Then the plugin should work. Or try this fix - #41 |
I have not tested solution with Python2. |
Python 2 R.I.P |
After migrating from version 8.22 to 20.9.0 sentry-telegram plugin no longer inserts {message} from issues into message body.
Messages sent by "Test Plugin" button are delivered correctly with {message}.
But messages from "real" alerts are delivered with empty {message} name.
As I understand it, this problem is related to changes in Sentry SDK.
def build_message(self, group, event):
the_tags = defaultdict(lambda: '[NA]')
the_tags.update({k:v for k, v in event.tags})
names = {
'title': event.title,
'tag': the_tags,
'message': event.message, <---- no longer work for issues in last versions.
'project_name': group.project.name,
'url': group.get_absolute_url(),
}
The text was updated successfully, but these errors were encountered: