You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
Using client.image to fetch pages from EPO's API always returns the first page, regardless of the range parameter provided.
Steps to Reproduce:
Used client.image with range=page to fetch the nth page of a document.
Only the first page was returned in every attempt.
Workaround:
Manually constructing the URL and headers to specify the X-OPS-Range and making a direct request with client._make_request retrieves the correct page.
Expected: client.image should interpret the range parameter to fetch the specified page number.
Issue:
Using
client.image
to fetch pages from EPO's API always returns the first page, regardless of therange
parameter provided.Steps to Reproduce:
client.image
withrange=page
to fetch the nth page of a document.Workaround:
Manually constructing the URL and headers to specify the
X-OPS-Range
and making a direct request withclient._make_request
retrieves the correct page.Expected:
client.image
should interpret therange
parameter to fetch the specified page number.Actual:
Always retrieves the first page.
Details:
client.image("http://ops.epo.org/rest-services/published-data/images/EP/1000000/PA/fullimage", range=page, document_format="application/pdf")
(I found the above through trial and error, because I couldn't understand what the data parameter does here)
The text was updated successfully, but these errors were encountered: