Handle case where alma user lookup returns a 400#39
Handle case where alma user lookup returns a 400#39davezuckerman wants to merge 1 commit intomainfrom
Conversation
|
Do we know why Alma is returning a 400? Is it a bad request before the request is nil or empty? perhaps we should be handling this further upstream (so that a bad request is not made to Alma). |
It looks like the user wasn't found and it returned a 400 for some reason. "content-type"=>"application/json;charset=UTF-8", "content-length"=>"180", "date"=>"Wed, 25 Mar 2026 00:29:07 GMT", "connection"=>"close", "server"=>"Layer7-API-Gateway"} @status=400 @reason_phrase="" @response_body="{"errorsExist":true,"errorList":{"error":[{"errorCode":"401861","errorMessage":"User with identifier 12010984 was not found.","trackingId":"E01-2503002908-YUK1D-AWAE1514299096"}]}}">> |
Alma patron lookup can also return a 400. Handling that case as well. I'm not sure if we should generalize it more though or if this is o.k. for now? Should we handle the 400 case differently since it could be unrelated to a patron not being found?