Skip to content

Issue with getAttachments() function #202

@SureshRIS

Description

@SureshRIS

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions