misformated drupal raven message params
Review this checklist before submitting.
-
GitLab issues are for bug reports and feature requests. If this is a help request, please post on Gitter. If you have or want paid support, please use the chat widget on https://glitchtip.com. -
Document reproduction steps. Be as detailed as possible. -
If applicable, try to reproduce the problem on https://app.glitchtip.com -
Be considerate of the reviewer of your issue and their time. They are likely unpaid. GlitchTip is open source and comes with absolutely no warrantee. -
Check existing issues first. 👍 the issue to show interest.
Description
As reported in issue #102 (closed), error messages from drupal/raven:4.0.2 raise the following glitchtip error :
Invalid event {'message': {'params': [ErrorDetail(string='Expected a list of items but got type "dict".', code='not_a_list')]}}
But, the command drush --debug raven:captureMessage
on the same drupal app creates a valid issue in glitchtip !
I've captured the payload of a faulty POST request, ungziped anonymized body => drupal_sentry_payload.json
I'm not familiar with the sentry POST body format, any clue ?
[update]
After more testing I found the culprit :
"message": {
"message": "Login attempt failed from %ip.",
"params": {
"%ip": "5.4.3.2"
},
"formatted": "Login attempt failed from 5.4.3.2."
}
params
is an object, not an array.
As https://develop.sentry.dev/sdk/event-payloads/message/ specify message params must be a list, I close this issue an open another one in the drupal/raven project.