Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not existing optional record element recordPosition leads to exception #7

Open
cKlee opened this issue Jun 13, 2023 · 2 comments
Open

Comments

@cKlee
Copy link

cKlee commented Jun 13, 2023

SRU version 1.2 defines the record element recordPosition as optional.

Im my case this element is missing in the response. This leads to the exception:

Fatal error: Uncaught Scriptotek\Sru\Exceptions\InvalidResponseException: Wrong index of first record in result set. Expected: 1, got: 0

Is there a way around this? I'm not comfortable to suggest any change in your code.

Thanks!

@cKlee cKlee changed the title Not existing optinal record element recordPosition leads to exception Not existing optional record element recordPosition leads to exception Jun 13, 2023
@sommer-gei
Copy link
Contributor

sommer-gei commented Jul 19, 2023

@cKlee Do you have any public SRU URL (or better: a full request URL), to test with? KR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants