Skip to content

queryMore issue when trying to retrieve the remaining records of an soql query #33

@toufikat

Description

@toufikat

Hi

For info, i noticed an issue with force.js when trying to use the queryMore method.

When performing a REST API Soql query for a big data set ( > 2000 records ) Salesforce returns an url that points to the next set of data to be retrieved, it has this form : /services/data/v41.0/query/SomeQueryId -1000

When queryMore is called with the above Url format it fails, because it uses a parseUrl utility which has a regex that checks for the Salesforce instance (https://instance.../services/data/...)

I fixed the issue by removing the (https?\:)\/\/ from the regex in the parseUrl method. and it's now working fine.

Best regards
Toufik

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