[Bug 41143] New: Content-type in EBSCO packages fails
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41143 Bug ID: 41143 Summary: Content-type in EBSCO packages fails Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: ERM Assignee: jonathan.druart@gmail.com Reporter: pedro.amorim@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: jonathan.druart@gmail.com, jonathan.field@openfifth.co.uk, martin.renvoize@openfifth.co.uk, matt.blenkinsop@openfifth.co.uk, pedro.amorim@openfifth.co.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41143 Pedro Amorim <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |33481 --- Comment #1 from Pedro Amorim <pedro.amorim@openfifth.co.uk> --- We started getting these errors when searching for packages in ERM eHoldings: [2025/10/30 14:18:08] [WARN] ERROR - EBSCO API /packages?orderby=packagename&offset=1&count=1 returned 400 - The value 'application/json; charset=UTF-8' is not valid for the 'contenttype' parameter. Allowed values: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, all, aggregatedfulltext, abstractandindex, ebook, ejournal, print, unknown, onlinereference, streamingmedia, mixedcontent}. [2025/10/30 14:18:08] [ERROR] GET /api/v1/erm/eholdings/ebsco/packages: unhandled exception (Mojo::Exception)<<ERROR requesting EBSCO API /packages?orderby=packagename&offset=1&count=1 code 400: The value 'application/json; charset=UTF-8' is not valid for the 'contenttype' parameter. Allowed values: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, all, aggregatedfulltext, abstractandindex, ebook, ejournal, print, unknown, onlinereference, streamingmedia, mixedcontent}.>> Reverting bug 33481 appears to prevent this from happening. But this looks weird, there seems to be something happening with contenttype vs content-type in the request. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33481 [Bug 33481] EBSCO ws return 415: Content type 'application/octet-stream' not supported -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41143 Pedro Amorim <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew.auld@openfifth.co.uk --- Comment #2 from Pedro Amorim <pedro.amorim@openfifth.co.uk> --- Reverting bug 33481 appears to cause things to go wrong with selecting and deselecting titles and packages so a proper fix is required here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41143 Pedro Amorim <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Content-type in EBSCO |Searching EBSCO packages |packages fails |results in 500 error due to | |Content-type -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41143 --- Comment #3 from Jonathan Druart <jonathan.druart@gmail.com> --- The error does not mean anything, why are they using the content-type header as a parameter? The doc: https://developer.ebsco.com/knowledge-services/reference/findpackagesbynameu... there is indeed a contenttype parameter I would contact them and ask what changed and if this behaviour is the expected one, maybe it's a bug on their side. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41143 --- Comment #4 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 188926 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188926&action=edit Bug 41143: Do not include content-type header when searching packages -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41143 --- Comment #5 from Jonathan Druart <jonathan.druart@gmail.com> --- This patch fixes the problem if you need a hotfix. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org