-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GET /quotes for unknown quote ID error response is 1001 instead of 3205 #1173
Comments
@amarmodus I agree that it shouldn't be 1001 in this case. I would actually say its 3000 - Generic client error if the Switch gets a 404 synchronously from the FSP on the other side (in our case, a simulator). How would the Switch know that the other FSP rejected it because it wasn’t found? If the simulator sends an error callback with 3205, we can just relay / forward it, otherwise, the Switch - in pass through mode has no visibility of it So, two things, I think we should update the current simulator to give a 3205 in case an ID is not found and not a 404 and on secondly, if we get a 404 from the FSP on the other side, we can only send something generic like 3000 to the initiating FSP What do you think.. @oderayi - please let us know if you have any further thoughts.. |
@elnyry - Yes agreed, switch doesn't know the error number, if it is not provided by the simulator. Looks like switch is passing 1001 error code. |
Summary:
GET /quotes for unknown quote ID error response is 1001 instead of 3205
Tasks:
Severity:
Low
Priority:
Low
Expected Behavior
202 response with error callback of 3205.
Steps to Reproduce
curl --location --request GET 'http://dev1-quoting-service.mojaloop.live/quotes/482f5ea4-67b6-431a-9737-c77b0123706c'
--header 'Accept: application/vnd.interoperability.quotes+json;version=1'
--header 'Content-Type: application/vnd.interoperability.quotes+json;version=1.0'
--header 'Date: Fri, 17 Jan 2020 10:37:29 GMT'
--header 'FSPIOP-Source: payerfsp'
--header 'FSPIOP-Destination: payeefsp'
make sure the quote id is valid UUID but unused quote ID.
Specifications
Notes:
Pull Requests
The text was updated successfully, but these errors were encountered: