atlassian / go-sentry-api

A go client for the sentry api https://sentry.io/api/
Other
53 stars 39 forks source link

Сannot unmarshal Issue.Metadata #33

Closed mberdnikov closed 2 years ago

mberdnikov commented 3 years ago

A new feature display_title_with_tree_label has been added to sentry due to which issue receiving does not work now.

https://github.com/getsentry/sentry/blob/15097c5165188f1c81aa85ff643b2a3ca50a19aa/src/sentry/eventtypes/error.py#L46

Example:

{
  "metadata": {
    "value": "Maximum execution time of 420 seconds exceeded",
    "type": "ErrorException",
    "filename": "...",
    "function": "...",
    "display_title_with_tree_label": false
  }
}

An error occurs during decoding:

json: cannot unmarshal bool into Go struct field Issue.metadata of type string

https://github.com/atlassian/go-sentry-api/blob/master/issue.go#L99