EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10218


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Import from DOI (via CrossRef)


CAUTION: This e-mail originated outside the University of Southampton.
Hi all,
Import from DOI (via crossref) appears to have stopped working for us since about the end of July. (Customised eprints 3.4.5 on RHEL 9)
I’ve tried amending the target URL to use https and when I try to import a new DOI I just get

Unhandled warning in Import::DOI: http error : Unknown IO error

Chucking some debug in on Dev gets me the following error (edited for pid details, bold stuff between '§§’ marks is my debug tracing, assuming that comes through on the mailing list).

Unhandled warning in Import::DOI: §§EPrints::XML::LibXML::_parse_url pub_lib/Plug↲
ins/Import/DOI input_text_fh:§§Could not create file parser context for file "htt↲
ps://doi.crossref.org/openurl?noredirect=true&pid=XXXXXX&format=unixref&↲
id=10.4324%2F9781003333999-2": No such file or directory at /usr/lib64/perl5/ve↲
ndor_perl/XML/LibXML.pm line 938, <$fh> line 2. XML::LibXML::parse_file(XML::Li↲
bXML=HASH(0x55a6f25f1b88), "https://doi.crossref.org/openurl?noredirect=true&pi↲
d=XXXXXX"...) called at /opt/eprints/perl_lib/EPrints/XML/LibXML.pm line 110 ↲
EPrints::XML::_parse_url(URI::https=SCALAR(0x55a6f53b96b0)) called at /opt/epri↲
nts/perl_lib/EPrints/XML.pm line 158 EPrints::XML::parse_url() called at /opt/e↲
prints/flavours/pub_lib/plugins/EPrints/Plugin/Import/DOI.pm line 109 eval {...↲
} called at /opt/eprints/flavours/pub_lib/plugins/EPrints/Plugin/Import/DOI.pm ↲
line 108 EPrints::Plugin::Import::DOI::input_text_fh(EPrints::Plugin::Import::O↲
rcidDOI=HASH(0x55a6f52bbf78), "fh", File::Temp=GLOB(0x55a6f52eef20), "action ...


It looks like it’s trying to use the LibXML file parser but can’t deal with the uri for some reason?
Any clues? 
Thanks
Alan