sentry-jira icon indicating copy to clipboard operation
sentry-jira copied to clipboard

forms.py:189 'NoneType' object has no attribute 'keys'

Open nsu opened this issue 12 years ago • 4 comments

For whatever reason, the issue_type dict doesn't have a 'fields' key when it gets to line 189 in forms.py. This causes the get() call to return None, which doesn't have .keys() method.

I wrote a quick fix to keep things running, but I'm not sure if this is a symptom of a deeper problem.

Sentry v5.4.1 sentry-jira@master

nsu avatar Apr 08 '13 14:04 nsu

Sounds like the JIRA API isn't returning in an expected format (issue_type fields are populated via api response).

What version of JIRA are you running?

thurloat avatar Apr 08 '13 14:04 thurloat

Looks like we're on JIRA v5.2.9#852

nsu avatar Apr 08 '13 14:04 nsu

Feel like adding a gist with the quick fix you added to keep things running?

thurloat avatar Apr 08 '13 14:04 thurloat

@nsu I just had another thought about this after re-reading the JIRA API docs.

"The fields in the createmeta correspond to the fields in the create screen for the project/issuetype. Fields not in the screen will not be in the createmeta."

Sounds weird, but is it possible that your JIRA configuration has a custom issue creation form, and no fields defined on it? That seems to be the only way (outside of possibly a permissions issue) that this problem could manifest.

thurloat avatar Jun 26 '13 00:06 thurloat