Navigation Menu

Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

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

Open
nsu opened this issue Apr 8, 2013 · 4 comments
Open

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

nsu opened this issue Apr 8, 2013 · 4 comments
Assignees
Milestone

Comments

@nsu
Copy link

nsu commented Apr 8, 2013

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

@ghost ghost assigned thurloat Apr 8, 2013
@thurloat
Copy link
Contributor

thurloat commented Apr 8, 2013

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?

@nsu
Copy link
Author

nsu commented Apr 8, 2013

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

@thurloat
Copy link
Contributor

thurloat commented Apr 8, 2013

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

@thurloat
Copy link
Contributor

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants