Skip to content

Query Response Format Error #1

Description

@hadizand

Hi,

When I run "python test.py", I get the following error:
Error: "string indices must be integers"
It relates to this line of code:
for element in res:
order.append(element["v_id"])

"element" is a string variable and since "v_id" is not an integer, it generates this error.
Is it because of the new format of storing data in TigerGraph (TG) 2?
Please let me know the TG, python versions that you used for this code.

  • when I check the res, it has meaningful content, so the query part is correct.

Thanks,
Hadi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions