Hello everyone, I am currently trying to cobble to...
# help-connector-development
s
Hello everyone, I am currently trying to cobble together a custom connector to get data from GetStream.io using the UI/YAML builder. Now, the way to paginate users is, not to point too fine of a point on it, awful. You have to insert a parameter in a "filter_conditions" object passed by a "payload" query parameter (so it encodes the json and passes it via URL), and if you send the request without any payload, it fails. It seems you can't inject a cursor in an existing query parameter like that, so here's what I've attempted. Weirdly, I get this error : "Jinja macro has undeclared variables: {'last_record'}". Does anyone know why this occurs / how I can solve it? I'm aware my last_record won't be defined on the first request, but the "if x is defined" macro usually works.
Nvm I got it. If anyone ever runs into that specific issue: apparently it's due to Airbyte's secure Jinja implementation. Just don't use an undeclared variable. My workaround was to use next_page_token, which is set to none on the first run.