Skip to content

Query Iteration with Session Parameters #15

@jmendenhall1525

Description

@jmendenhall1525

The iter() function of the the query class seems to improperly format the url string when getting nextLink urls if parameters are set in the requests session.

It seems the @odata.nextLink includes the parameters as part of the url string, and the requests session tacks on a duplicate of these parameters when the execute_get method is called resulting in an improperly formatted url. To fix this it seems the requests.Session.params needs to be cleared out when iterating through nextLink urls.

Image

Modified query class runs ok locally when parameters are cleared out.

Image

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