KeyError: 'customFieldItems'
See original GitHub issueTraceback (most recent call last):
File "scripts/trello_requirements.py", line 242, in <module>
main()
File "scripts/trello_requirements.py", line 238, in main
args.dry_run, args.lookup_method, args.approver)
File "scripts/trello_requirements.py", line 144, in get_trello_board_content
tcards = board.get_cards()
File "/var/lib/jenkins/workspace/trello-to-polarion-igulina/Polarion_Scripts/.venv/lib/python2.7/site-packages/trello/board.py", line 302, in get_cards
return list([Card.from_json(self, json) for json in json_obj])
File "/var/lib/jenkins/workspace/trello-to-polarion-igulina/Polarion_Scripts/.venv/lib/python2.7/site-packages/trello/card.py", line 157, in from_json
card.customFields = CustomField.from_json_list(card, json_obj['customFieldItems'])
KeyError: 'customFieldItems'
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
py-trello/CHANGELOG at master - GitHub
Fixes Issue #247 KeyError: 'customFieldItems'. v0.11.3. Modifies Cards.from_json to not require customFieldItems. v0.12.0.
Read more >python - "Got KeyError when attempting to get a value for field ...
I think the issue is that you get_queryset method returns a QuerySet of dictionaries, rather than model instances (see .values() ).
Read more >KeyError Pandas – How To Fix - Data Independent
Pandas KeyError - This annoying error means that Pandas can not find your column name in your dataframe. Here's how to fix this...
Read more >Solved: KeyError when working with fields - Esri Community
Solved: I get KeyError: 5 error when running my script tool. Background of the script: Earlier in the script, i do a summary...
Read more >Invalid value for custom field type - Trello
Here's a link to a guide on custom fields in Trello. Scroll down to the section titled Setting & Updating CustomFieldItems.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Merged #250 and pushed a
0.11.3
up to PyPi. Thanks!I found the same issue in open_cards(), get_cards() and all_cards(). My board is with custom fields enable. How can I solve this?
Traceback (most recent call last): File “teste.py”, line 17, in <module> print(quadro.all_cards()) File “C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\trello\board.py”, line 263, in all_cards return self.get_cards(filters) File “C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\trello\board.py”, line 302, in get_cards return list([Card.from_json(self, json) for json in json_obj]) File “C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\trello\board.py”, line 302, in <listcomp> return list([Card.from_json(self, json) for json in json_obj]) File “C:\Users\Guilherme Mendes\AppData\Local\conda\conda\envs\virtualconda\lib\site-packages\trello\card.py”, line 157, in from_json card.customFields = CustomField.from_json_list(card, json_obj[‘customFieldItems’]) KeyError: ‘customFieldItems’