Sam Mullican
02/05/2025, 7:48 PMkapa.ai
02/05/2025, 7:48 PMyaml cursor_value: '{{ response.get("meta", {}).get("next_token", {}) }}'
2. If the extraction is correct, but the value is not being properly injected into the path, you might need to use custom parameter injection. As mentioned in the [Custom parameter injection documentation](https://docs.airbyte.com/connector-development/connector-builder-ui/pagination#custom-parameter-injection), you can disable the default injection in the pagination form and use the generic parameter section to configure the injection manually. 3. In your case, you might need to use the next_page_token
variable to configure the correct path. For example: yaml {{ next_page_token['next_page_token'] or '0' }}
4. If the issue persists, it could be related to how the CursorPagination
strategy is implemented in your connector. You might want to review the [CursorPagination reference](https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/CursorPagination) to ensure all required properties are correctly set. 5. If you're still facing issues, it might be helpful to enable debug logging to see exactly what values are being extracted and injected at each step of the pagination process. If none of these suggestions solve your problem, you might be encountering a bug in Airbyte. In that case, consider opening an issue on the [Airbyte GitHub repository](https://github.com/airbytehq/airbyte) with detailed information about your connector configuration and the specific behavior you're observing.Sam Mullican
02/05/2025, 7:53 PMtype: DefaultPaginator
page_token_option:
type: RequestPath
pagination_strategy:
type: CursorPagination
page_size: 50
cursor_value: '{{ response.get("pagination", {}).get("next_url", {}) }}'
stop_condition: '{{ not response.get("pagination", {}).get("next_url", {}) }}'
the response body for the pagination object is:
<https://ads-api.reddit.com/api/v3/ad_accounts/[redacted]/reports?page.token=[redacted]>
the subsequent request for the next page is:
<https://ads-api.reddit.com/ad_accounts/[redcated]/reports?page.token=[redacted]>
so it excluding /api/v3/
from the next page request.kapa.ai
02/05/2025, 7:53 PMkapa.ai
02/05/2025, 7:54 PM