Using Python SDK i.read('opportunities') suddenly ignores "top" and "skip" keyword arguments

Hi,

 

I've been using the v2.2 API via the Python SDK for a while now, and it was working very well. In the past couple of days, without any change made to my code base, the i.read() method started ignoring the "top" and "skip" arguments. I seem to always get back the first (earliest) 100 opportunities on my account, regardless of what I set (or do not set) on the top and skip arguments. This is both when using the arguments together and when using each separately.

 

Was there a change to the insightly API endpoints that is not addressed in the Python SDK? I did not see a new version committed to the github repo.

 

Please note that I have no problem fetching data, there is not authentication or communication issue. I get opportunities data, just not as specified by top and/or skip.

 

Thanks for your assistance,

Oded

1

Comments

4 comments
  • Official comment

    Hi Oded,

    Thank you for bringing this to our attention. This is a bug; we are working to fix this as quickly as possible! I will update this post as soon as it is fixed.

    Thanks,
    Nate

    Comment actions Permalink
  • Hello again Oded. We have released a fix for the pagination problem with Opportunities. Please give that another try and let us know if it's not working. Thanks!

    2
    Comment actions Permalink
  • Working perfectly again, thank you!

    1
    Comment actions Permalink
  • Hi,

    According to my testing there seems to be a regression related to this issue. While the skip parameter is still respected, it seems as if the top parameter is now ignored again. Regardless of whether I set top=100,top=200 or top=600 I always get exactly 100 opportunities back.

    I did check and setting top to something less than 100, such as top=40 does effect and I do get only 40 opportunities back, so it is more as if there is now a hard limit on top=100.

    Thanks you for your assistance,

    Oded

    0
    Comment actions Permalink

Please sign in to leave a comment.