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: TypeError: object of type 'NoneType' has no len() #227

Open
huiwangredhat opened this issue Oct 22, 2024 · 1 comment
Open

Traceback: TypeError: object of type 'NoneType' has no len() #227

huiwangredhat opened this issue Oct 22, 2024 · 1 comment

Comments

@huiwangredhat
Copy link

Seen in the pod logs internally

[2024-10-20 14:00:54,820] INFO: DEBUG: Issue [oscal-compass/compliance-trestle] Allow OSCAL metadata to be edited through the trestle `author` commands
[2024-10-20 14:00:54,821] ERROR: Failed on <Issue https://github.com/oscal-compass/compliance-trestle/issues/1539 >
[2024-10-20 14:00:55,465] 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 1160, in sync_with_jira
_update_jira_issue(existing, issue, client)
File "/usr/local/lib/python3.9/site-packages/sync2jira/downstream_issue.py", line 779, in _update_jira_issue
_update_description(existing, issue)
File "/usr/local/lib/python3.9/site-packages/sync2jira/downstream_issue.py", line 1056, in _update_description
log.info(f"DEBUG: Diff: {''.join(diff)}")
File "/usr/lib64/python3.9/difflib.py", line 1138, in unified_diff
for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
File "/usr/lib64/python3.9/difflib.py", line 572, in get_grouped_opcodes
codes = self.get_opcodes()
File "/usr/lib64/python3.9/difflib.py", line 525, in get_opcodes
for ai, bj, size in self.get_matching_blocks():
File "/usr/lib64/python3.9/difflib.py", line 442, in get_matching_blocks
la, lb = len(self.a), len(self.b)
TypeError: object of type 'NoneType' has no len()
[2024-10-20 14:00:55,466] INFO: 172.20.226.117 - - [20/Oct/2024 14:00:55] "POST /handle-event HTTP/1.1" 500 -
@huiwangredhat
Copy link
Author

The reason is that the unsynced related issues have been linked to other Jira issues.
[2024-10-23 02:30:57,911] INFO: Found existing, matching downstream 'PSCE-403'.

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