GothenburgBitFactory / GothenburgBitFactory/bugwarrior
trello: KeyError: `memberCreator`
- Dominant language
- Python
- Stars
- 820
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
I got an error (after waiting for a _very_ long time), trying to sync `trello` with the following config:
```
[trello]
service = trello
trello.api_key = [apikey]
trello.token = @oracle:eval:pass show bugwarrior/trello/token
```
Error:
```
ERROR:bugwarrior.services:Worker for [trello] failed: 'memberCreator'
Traceback (most recent call last):
File "/home/fbence/.pyenv/versions/3.11.1/lib/python3.11/site-packages/bugwarrior/services/__init__.py", line 504, in _aggregate_issues
for issue in service.issues():
File "/home/fbence/.pyenv/versions/3.11.1/lib/python3.11/site-packages/bugwarrior/services/trello.py", line 123, in issues
issue.update_extra({"annotations": self.annotations(card)})
^^^^^^^^^^^^^^^^^^^^^^
File "/home/fbence/.pyenv/versions/3.11.1/lib/python3.11/site-packages/bugwarrior/services/trello.py", line 130, in annotations
annotations = self.build_annotations(
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fbence/.pyenv/versions/3.11.1/lib/python3.11/site-packages/bugwarrior/services/__init__.py", line 149, in build_annotations
for author, message in annotations:
File "/home/fbence/.pyenv/versions/3.11.1/lib/python3.11/site-packages/bugwarrior/services/trello.py", line 131, in
((c['memberCreator']['username'], c['data']['text']) for c in comments),
~^^^^^^^^^^^^^^^^^
KeyError: 'memberCreator'
INFO:bugwarrior.services:Done with [trello] in 4556.107841s
INFO:bugwarrior.services:Terminating workers
ERROR:bugwarrior.command:Aborted (critical error in target 'trello')
Traceback (most recent call last):
File "/home/fbence/.pyenv/versions/3.11.1/lib/python3.11/site-packages/bugwarrior/command.py", line 73, in pull
synchronize(issue_generator, config, main_section, dry_run)
File "/home/fbence/.pyenv/versions/3.11.1/lib/python3.11/site-packages/bugwarrior/db.py", line 357, in synchronize
for issue in issue_generator:
File "/home/fbence/.pyenv/versions/3.11.1/lib/python3.11/site-packages/bugwarrior/services/__init__.py", line 572, in aggregate_issues
raise RuntimeError(
RuntimeError: critical error in target 'trello'
```
Side question: it seems oracle is not supported for the api key? Although I'm guessing it's actually safe to make it public?
Is it possible to ask bugwarrior to be more verbose during pull?
Contributor guide
Assessment
This issue has not been assessed yet.