Skip to content

Error when querying list of objects from a sandbox #7

@BethHoward

Description

@BethHoward

I successfully logged into a sandbox, but was met with this error message when I tried to get the list of objects:
"There was an error processing your request: Traceback (most recent call last): File "/app/createfields/tasks.py", line 70, in get_metadata for record in requests.get(request_url + 'sobjects', headers = headers).json()['sobjects']: TypeError: list indices must be integers, not str"

Any ideas what I can do to get past it? Thanks!

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