Open brent-hartwig opened 2 days ago
Addressed in PR https://github.com/project-lux/lux-marklogic/pull/208. After addressing, the same request that resulted in the above 500 changed to a 404 --which is correct for the given request (i.e., the fix allowed the real error to surface).
How can this be tested?
When #203 is also deployed, one can attempt to consume the
/ds/lux/personRoles.mjs
endpoint. If a 404 is returned, this is working. If a 500 is returned, this may not yet be deployed.Description
The line
let errorBody = external.error.toObject();
fails whenexternal.error
is undefined, leading to another error that covers up the main one.Example of backend response when this condition is true: