dixudx / dixudx/rtcclient

Issue with getAttachments() function

Open
#202 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
40
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Hello,

When using RTCClient, only for certain WorkItems, it is unable to fetch the attachments and it ends up with an error like below:

File "C:\1_Work\Tool\pyFile\main.py", line 10, in check_dou_tag
attachments = str(item.getAttachments())
File "C:\1_Work\Tool\pyFile\rtcclient_v2\workitem.py", line 919, in getAttachments
page_size="10"))
File "C:\1_Work\Tool\pyFile\rtcclient_v2\client.py", line 1428, in _get_paged_resources
filter_rule=filter_rule)
File "C:\1_Work\Tool\pyFile\rtcclient_v2\client.py", line 1497, in _handle_resource_entry
entry_archived = entry.get("rtc_cm:archived")
AttributeError: 'str' object has no attribute 'get'

But for many other WorkItems, the same code works.
Could you help here?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.