https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42705
--- Comment #2 from Pedro Amorim (ammopt) <[email protected]> --- Created attachment 199734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199734&action=edit Bug 42705: Make http-client.js handle svc endpoint error The afterEach calls cy.login() then immediately posts to the syspref endpoint. On CI, the machine is slow enough that the POST fires before the login redirect completes — no valid session yet — so the endpoint returns a C4::Service auth error in this format: { "type": "auth", "message": "expired" } http-client.js only knew how to parse modern REST API errors (json.error or json.errors[]). Neither field exists here, so json.errors.map(...) crashed with a TypeError instead of surfacing the actual error message. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
