Open Rhiyo opened 3 months ago
I think my start date I had set in the source had just gone two far past the time bound limit. Is there a way to keep this dynamic so this doesn't happen?
Edit: Updated the start date to a more recent date and still getting the issue.
Nope. As it stands, config inputs are static. You can change them manually, not dynamically.
We could just say that if the config input is not present, we should always default to dynamically allocated 6 months or so, but still, that would be a jinja expression in the connector code.
Want to try and contribute?
Hey @natikgadzhi, I can work on this one
We can do one thing whenever we are out of time bound, we can set start_date to (todays_date - 12 month)
You can try and set something like {{ max(config['start_date'], date("12 months ago") }}
(pseudocode obv). I don't remember how exactly, but I know our Jinja interpolations have a way of getting a date relative of today.
@avirajsingh7 set status to in-progress when you'll get started on this, please!
Hey @natikgadzhi , I believe start_date is limited to 365 days , check here
Well, yeah, and the API seems to require not longer than a year, but I think that because the sync takes time, by the time request is performed, the date is too far gone. I.e. a few minuets make a difference.
I would just set the max value to 350 days or something.
Stream Follower Statistics Time Bound: Start Date must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules
Connector Name
source-linkedin-pages
Connector Version
1.0.7
What step the error happened?
During the sync
Relevant information
While performing a daily sync I sometimes get an error that follower and share time bound statistics are incorrect time bounds.
It auto runs in the day and doesn't happen every time, usually if I run it again manually it works.
This is with incremental appends loads with timeRangeEnd as the cursor field.
Relevant log output
Contribute