Quoting-Service is incorrectly handling failed responses to FSPs when forwarding requests #2435
Labels
bug
Something isn't working or it has wrong behavior on a Mojaloop Core service
oss-core
This is an issue - story or epic related to a feature on a Mojaloop core service or related to it
to-be-refined
This story is ready to be groomed
Summary:
Quoting-Service is incorrectly handling failed responses to FSPs when forwarding requests.
https://github.com/mojaloop/quoting-service/blob/master/src/lib/http.js#L63 <-- the Following line of code shows that the Quoting-Service will translate all errors to
ErrorHandler.Enums.FSPIOPErrorCodes.DESTINATION_COMMUNICATION_ERROR
when the HTTP status code does not match 404.Severity:
High
Priority:
Medium
Expected Behavior
Quoting-Service should correctly map the error response to the appropriate FSPIOP error. For example:
ErrorHandler.Enums.FSPIOPErrorCodes.DESTINATION_COMMUNICATION_ERROR
(i.e. 1xxx) is only applicable when the Quoting-Service is unable to communicate with the FSP service.etc...
Steps to Reproduce
Specifications
Notes:
The text was updated successfully, but these errors were encountered: