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