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

decode failed due to XML header #35

Closed
bertsky opened this issue Dec 11, 2023 · 1 comment
Closed

decode failed due to XML header #35

bertsky opened this issue Dec 11, 2023 · 1 comment

Comments

@bertsky
Copy link

bertsky commented Dec 11, 2023

If I do metha-sync -format mets -set 17th-century-prints http://digital.slub-dresden.de/oai/ I finally end up with a fatal error after this:

INFO[0024] decode failed with: <?xml version="1.0" encoding="UTF-8"?> 
INFO[0025] decode failed with: <?xml version="1.0" encoding="ISO-8859-1"?> 
INFO[0027] decode failed with: <?xml version="1.0" encoding="WINDOWS-1252"?> 
INFO[0028] decode failed with: <?xml version="1.0" encoding="UTF-16"?> 
INFO[0029] decode failed with: <?xml version="1.0" encoding="US-ASCII"?> 

Is this a problem with our data, or with the parser?

@bertsky
Copy link
Author

bertsky commented Dec 15, 2023

Note, by instrumenting L197 I found out that the record in question simply gets cut short. When I increase the io.LimitReader size limit from 16 MB to 64 MB, then it runs through.

@miku miku closed this as completed in 90d7237 Mar 8, 2024
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

1 participant