question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError: 'customFieldItems'

See original GitHub issue
Traceback (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:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sarumontcommented, May 25, 2018

Merged #250 and pushed a 0.11.3 up to PyPi. Thanks!

0reactions
superghmcommented, Jun 21, 2018

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’

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found