mariovw
02/24/2026, 9:53 PMresponse.records map. However I'm getting an error when running the replication. It seems like it is not injecting the state variable before passing the expression to jmsepath.
# Excerpt from spec.yaml
defaults:
state:
url: 'https://api.lightspeedapp.com/API/V3/Account/{inputs.account_id}/{state.endpoint_name}.json'
request:
url: '{state.url}'
dynamic_endpoints:
- iterate: '["Employee","CustomerType"]'
into: 'state.endpoint_name'
endpoint:
name: '{snake(state.endpoint_name)}'
response:
records:
jmespath: '{state.endpoint_name}[]'
primary_key: '{snake(state.endpoint_name)}_id'
processors:
- expression: 'object_casing(record, "snake")'
output: 'record'
The error message:
3:19PM INF execution failed
~ could not perform request
could not evaluate jmespath "{state.endpoint_name}[]" => SyntaxError: Expected tColon, received: tDot
context canceledflarco
02/25/2026, 2:34 AMmariovw
02/26/2026, 2:28 AMflarco
02/26/2026, 10:21 AMmariovw
02/26/2026, 4:54 PMmariovw
03/03/2026, 7:06 AM$ sling --version
Version: 1.5.11
$ sling run -r test.replication.yaml --streams customer_type
1:02AM INF Sling CLI | https://slingdata.io
1:02AM INF Sling Replication | LIGHTSPEED_API -> STAGING | customer_type
1:02AM INF connecting to target database (duckdb)
1:02AM INF connecting to source api (api)
1:02AM INF execution failed
fatal:
~ failure running replication (see docs @ https://docs.slingdata.io/sling-cli)
--------------------------- customer_type ---------------------------
~ could not stream requests
~ could not perform request
could not evaluate jmespath "{state.endpoint_name}[]" => SyntaxError: Expected tColon, received: tDotflarco
03/03/2026, 10:07 PM