marikt94
10/24/2025, 9:21 AMflarco
10/24/2025, 10:31 AMnext_state. Should be
pagination:
next_state:
# Increment page number
page: "{state.page + 1}"
stop_condition: 'state.page >= 2'
Could you try that?
I will add some more checks in the spec validation logic to help identify those.
https://cdn.discordapp.com/attachments/1431210887452164108/1431228543043375165/image.png?ex=68fca6f3&is=68fb5573&hm=21522a92af470eb7682d03e60a479b288eb209b82e4dd2c80f5a60e9c6e2da0d&flarco
10/24/2025, 10:32 AMflarco
10/24/2025, 10:36 AM" around response.json (that passes it as a string)
stop_condition: 'state.page >= jmespath("response.json", "total.pages") || length(response.records) == 0'
should be
stop_condition: 'state.page >= jmespath(response.json, "total.pages") || length(response.records) == 0'marikt94
10/24/2025, 11:13 AMmarikt94
10/24/2025, 11:15 AMmarikt94
10/24/2025, 11:18 AMflarco
10/24/2025, 11:21 AMflarco
10/24/2025, 11:21 AMnext_stateflarco
10/24/2025, 11:23 AMpagination:
next_state:
# Increment page number
page: "{state.page + 1}"
stop_condition: 'state.page >= 2'marikt94
10/24/2025, 11:36 AMflarco
10/24/2025, 11:37 AMmarikt94
10/24/2025, 11:58 AMflarco
10/24/2025, 12:10 PMmarikt94
10/24/2025, 12:14 PMflarco
10/24/2025, 12:18 PMnext_state) before the processors are processed. Will take a look and let you knowmarikt94
10/24/2025, 12:18 PMmarikt94
10/24/2025, 12:19 PMflarco
10/24/2025, 12:19 PMmarikt94
10/24/2025, 12:19 PMmarikt94
10/24/2025, 12:19 PMflarco
10/24/2025, 12:19 PM--debug?flarco
10/24/2025, 12:19 PMmarikt94
10/24/2025, 12:21 PMflarco
10/25/2025, 3:09 PMflarco
10/25/2025, 3:09 PMname: "Example API"
defaults:
state:
base_url: https://swapi.dev/api
now: '{ date_format(now(), "%s") }'
request:
headers:
Accept: "application/json"
endpoints:
data_planets:
state:
id: 1
request:
headers:
KEY1: '{secrets.my_key}'
url: '{state.base_url}/planets/{state.id}'
method: GET
parameters:
limit: 2
key: '{secrets.my_key}'
pagination:
next_state:
id: '{ state.id + 1 }'
stop_condition: 'state.id >= 4'flarco
10/25/2025, 3:09 PM./sling run --src-conn swapi --src-stream data_planets --stdout --debugflarco
10/25/2025, 3:10 PMmarikt94
10/26/2025, 12:35 PMmarikt94
10/28/2025, 5:58 PMmarikt94
10/28/2025, 5:59 PMmarikt94
10/28/2025, 6:00 PMmarikt94
10/28/2025, 6:01 PMmarikt94
10/28/2025, 7:16 PMflarco
10/28/2025, 7:17 PMmarikt94
10/28/2025, 7:18 PMmarikt94
10/28/2025, 7:18 PMflarco
10/28/2025, 7:18 PM--trace and make it freeze and share that log?marikt94
10/28/2025, 7:19 PMmarikt94
10/28/2025, 7:23 PMmarikt94
10/28/2025, 7:25 PMflarco
10/28/2025, 8:42 PM--trace and share output again? thankmarikt94
10/28/2025, 8:51 PM