JSON No Code Connector Pagination

Options
dsixta
dsixta Member
edited September 2023 in Connectors

When using Pagination "Offset by pages" it allows to to set my limit, page and start at page 0. The endpoint returns the data and shows up fine in the Data details section. When running I see requests that keep incrementing the page and eventually we return no records when the paging gets out of bounds for that endpoint. We have tried sending empty record set as well as sending a 204 header for no content but the paging still seems to increment forever. If there anything we can do on the endpoint to inform the connector to stop looking for content? Could not find any documentation.

Best Answer

  • GrantSmith
    GrantSmith Coach
    Answer ✓
    Options

    Does your endpoint return the total number of pages in the response? When configuring the connector are you expecting that value to be there or is it set to No?

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓
    Options

    Does your endpoint return the total number of pages in the response? When configuring the connector are you expecting that value to be there or is it set to No?

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**