# WS Pagination with header - Error ConnectorException

**URL:** <https://developer.sailpoint.com/discuss/t/ws-pagination-with-header-error-connectorexception/189393>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, sailpoint-identity-security, apis\
**Created:** [November 27, 2025, 2:13pm UTC](https://developer.sailpoint.com/discuss/t/ws-pagination-with-header-error-connectorexception/189393 "2025-11-27T14:13:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazakeibic](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kazakeibic/32/29168_2.png) [@kazakeibic](https://developer.sailpoint.com/discuss/u/kazakeibic)\
**Post date:** [November 27, 2025, 2:13pm UTC](https://developer.sailpoint.com/discuss/t/ws-pagination-with-header-error-connectorexception/189393/1 "2025-11-27T14:13:59Z")

</div>

> ‼ Please be sure you’ve read the [docs](https://developer.sailpoint.com/idn/docs/) and [API specs](https://developer.sailpoint.com/idn/api/getting-started) before asking for help. Also, please be sure you’ve [searched](https://developer.sailpoint.com/discuss/search?expanded=true) the forum for your answer before you create a new topic.

Hi everyone, how are you?

If anyone has any suggestions, I have an application that uses pagination via a cursor-based header.

For example, this link is: [https://api.example.com/users?cursor=abc123](https://api.example.com/users?cursor=abc123); rel=“next”

[GreenHouse Application](https://harvestdocs.greenhouse.io/docs/pagination)

I managed to get through all the pages using the suggestion from the documentation:

Paging Based on Response Header Links

> **[Paging Based on Response Header Links](https://documentation.sailpoint.com/connectors/webservices/help/integrating_webservices/paging_based_on_response_header_links.html)**
>
> SailPoint Connectors Documentation

I’ve already tried some tests with (which worked, but the error persists at the end):

`TERMINATE_IF $responseHeaders.link.next$ == “”`  
`$endpoint.fullUrl$ = $responseHeaders.link.next$`

`TERMINATE_IF $responseHeaders.link.next$ == NULL`  
`$endpoint.fullUrl$ = $responseHeaders.link.next$`

But I’m encountering the error:

`sailpoint.connector.ConnectorException: Url: , Message: 0 : org.apache.http.client.ClientProtocolException, HTTP Error Code: 0`

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/3/1/31fe8da0888dc971750f3123bd7d01084f38c61d.png)

```auto
{
"httpMethodType": "GET",
"pagingInitialOffset": 0,
"sequenceNumberForEndpoint": "2",
"uniqueNameForEndPoint": "Account Aggregation",
"rootPath": "$[*]",
"body": {
"jsonBody": null,
"bodyFormat": "raw"
},
"paginationSteps": "TERMINATE_IF $responseHeaders.link.next$ == \"\"\n$endpoint.fullUrl$ = $responseHeaders.link.next$",
"responseCode": [
"2**"
],
"resMappingObj": {
"updated_at": "$.updated_at",
"employee_id": "$.employee_id",
"agency_id": "$.agency_id",
"name": "$.name",
"created_at": "$.created_at",
"last_name": "$.last_name",
"primary_email": "$.primary_email",
"id": "$.id",
"first_name": "$.first_name",
"job_title": "$.job_title",
"deactivated": "$.deactivated"
},
"contextUrl": "/v3/users?per_page=500",
"pagingSize": 500,
"curlEnabled": false,
"header": {
"Authorization": "Bearer $application.accesstoken$",
"Accept": "application/json"
},
"operationType": "Account Aggregation",
"xpathNamespaces": null,
"parentEndpointName": null
},

```

If anyone has another Suggestion, and if you can help me.

Thanks

---

<div class="post-metadata">

**Author:** ![lampard08](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/lampard08/32/32646_2.png) [@lampard08](https://developer.sailpoint.com/discuss/u/lampard08)\
**Post date:** [November 27, 2025, 4:54pm UTC](https://developer.sailpoint.com/discuss/t/ws-pagination-with-header-error-connectorexception/189393/2 "2025-11-27T16:54:02Z")

</div>

> [@kazakeibic](#):
>
> $responseHeaders.link.next$

can you check what is this returning: $responseHeaders.link.next$

---

<div class="post-metadata">

**Author:** ![iamnithesh](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/iamnithesh/32/42445_2.png) [@iamnithesh](https://developer.sailpoint.com/discuss/u/iamnithesh)\
**Post date:** [November 27, 2025, 5:07pm UTC](https://developer.sailpoint.com/discuss/t/ws-pagination-with-header-error-connectorexception/189393/3 "2025-11-27T17:07:36Z")

</div>

> [@kazakeibic](#):
>
> I managed to get through all the pages using the suggestion from the documentation:

Are you sure all pages have been aggregated? Can you make an API call in Postman and share the response header received?

---

<div class="post-metadata">

**Author:** ![kazakeibic](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kazakeibic/32/29168_2.png) [@kazakeibic](https://developer.sailpoint.com/discuss/u/kazakeibic)\
**Post date:** [November 27, 2025, 5:38pm UTC](https://developer.sailpoint.com/discuss/t/ws-pagination-with-header-error-connectorexception/189393/4 "2025-11-27T17:38:27Z")

</div>

Hello Nithesh,

Yes, I do, judging by the number of accounts that appear on the portal (over 6,000 in total).

I did a new test, using the parameter that our colleague used in another forum:

> [@WS Pagination Not Terminating](https://developer.sailpoint.com/discuss/t/ws-pagination-not-terminating/29182/3):
>
> Thanks for the recommendation! I did try that at one point, but it was with the other termination conditions I have listed and it still wasn’t working. I figured I would try your suggestion as the only condition but unfortunately, it still results in the same error. Two successful calls then a third call with an empty $url.

`TERMINATE_IF $RECORDS_COUNT$ < 5000`

And it seems to have worked here too!

Thank you everyone for your support.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [January 26, 2026, 5:38pm UTC](https://developer.sailpoint.com/discuss/t/ws-pagination-with-header-error-connectorexception/189393/5 "2026-01-26T17:38:57Z")

</div>

Closed on January 26, 2026, 5:38pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
