Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback trying to find an admin for a username #224

Open
miabbott opened this issue Oct 16, 2024 · 0 comments
Open

Traceback trying to find an admin for a username #224

miabbott opened this issue Oct 16, 2024 · 0 comments

Comments

@miabbott
Copy link

Seen in the pod logs internally

[2024-10-16 13:33:50,799] INFO: 172.20.226.31 - - [16/Oct/2024 13:33:50] "POST /handle-event HTTP/1.1" 500 -
[2024-10-16 13:33:50,977] ERROR: Exception on /handle-event [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "/usr/local/src/sync2jira/sync-page/event-handler.py", line 36, in handle_event
initialize_issues(config, repo_name=repo_name)
File "/usr/local/lib/python3.9/site-packages/sync2jira/main.py", line 190, in initialize_issues
d_issue.sync_with_jira(issue, config)
File "/usr/local/lib/python3.9/site-packages/sync2jira/downstream_issue.py", line 1152, in sync_with_jira
existing = _get_existing_jira_issue(client, issue, config)
File "/usr/local/lib/python3.9/site-packages/sync2jira/downstream_issue.py", line 405, in _get_existing_jira_issue
results = _matching_jira_issue_query(client, issue, config)
File "/usr/local/lib/python3.9/site-packages/sync2jira/downstream_issue.py", line 189, in _matching_jira_issue_query
alert_user_of_duplicate_issues(issue, final_results,
File "/usr/local/lib/python3.9/site-packages/sync2jira/downstream_issue.py", line 277, in alert_user_of_duplicate_issues
message = 'No admin could be found for username %s' % list(admin.keys())[0]
AttributeError: 'set' object has no attribute 'keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant