ERROR - EBSCO API /vendors/19/packages/3816 returned 415 - Content type 'application/octet-stream' not supported [ERROR] PATCH /api/v1/erm/eholdings/ebsco/packages/19-3816: unhandled exception (Mojo::Exception)<<ERROR requesting EBSCO API /vendors/19/packages/3816 code 415: Content type 'application/octet-stream' not supported>>
Created attachment 149434 [details] [review] Bug 33481: Pass content-type when requesting EBSCO's webservice
Created attachment 149436 [details] [review] Bug 33481: Pass content-type when requesting EBSCO's webservice Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
It appears that some update on EBSCO's end has started to cause this error (tighter validation?). It also appears we should be sending the request header in the first place anyway, and we weren't. https://developer.ebsco.com/knowledge-services/holdingsiq/code-samples The patch fixes the "add packages to holdings" button bug, sample link to reproduce: http://localhost:8081/cgi-bin/koha/erm/eholdings/ebsco/packages/186-3962361 However the same apparent issue is also happening on "add titles to holdings" but not sure yet if related to this or a different bug, logs and console are not showing anything at first glance: http://localhost:8081/cgi-bin/koha/erm/eholdings/ebsco/resources/19-2691705-28038201
(In reply to Pedro Amorim from comment #3) > However the same apparent issue is also happening on "add titles to > holdings" but not sure yet if related to this or a different bug, logs and > console are not showing anything at first glance: > http://localhost:8081/cgi-bin/koha/erm/eholdings/ebsco/resources/19-2691705- > 28038201 It works for me on other resources, for instance /cgi-bin/koha/erm/eholdings/ebsco/resources/19-3754-560226
It seems bug 33485 has fixed the EBSCO titles issue.
Created attachment 149634 [details] [review] Bug 33481: Pass content-type when requesting EBSCO's webservice Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Pushed to master for 23.05. Nice work everyone, thanks!
Nice work everyone! Pushed to stable for 22.11.x