PagerDuty / pdpyras

Low-level PagerDuty REST/Events API client for Python
MIT License
129 stars 29 forks source link

Increment offset by length of results in iter_all #63

Closed Deconstrained closed 3 years ago

Deconstrained commented 3 years ago

The response plays API has been returning null values for offset and limit in its body. By trusting these values from the API, the client set itself up for a TypeError (see #61).

This fixes the issue by incrementing offset by the length of the array of results returned by the index instead of the value reported by the API.