snyk-labs / pysnyk

A Python client for the Snyk API.
https://snyk.docs.apiary.io/
MIT License
88 stars 116 forks source link

Fix issue with limit duplication leading to errors #204

Closed garethr closed 1 year ago

garethr commented 1 year ago

this commit introduced a default limit in the client. However, the limit is also present in the URL. That leads to the 2nd and subsequent pages failing due to passing limit=X&limit=X. That is interpreted as an array by the server, and will fail with a client error.

The fix checks the URL for the limit, and avoids the duplication if present.