Skip to content
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

Quoting Service fails to send error callbacks #1734

Closed
oderayi opened this issue Sep 28, 2020 · 0 comments
Closed

Quoting Service fails to send error callbacks #1734

oderayi opened this issue Sep 28, 2020 · 0 comments
Assignees
Labels
oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it
Milestone

Comments

@oderayi
Copy link

oderayi commented Sep 28, 2020

Summary:
The quoting service is currently failing to forward error callbacks when the Payee FSP responds to a quote request with invalid response e.g specifying "Accept" header in a PUT callback.

Severity: Medium

Priority: Medium

Expected Behavior
When a quote request is sent to a Payee FSP, and the Payee FSP sends back an invalid response e.g. specifying "Accept" header in a PUT callback, the callback request should pass with a 200 but an error callback should be sent back to the Payee FSP noting the error in the earlier request.

Steps to Reproduce

  1. Send a POST /quotes request to a Payee FSP (noresponsepayeefsp)
  2. Send a PUT /quotes/{ID} back from noresponsepayeefsp to payerfsp
  3. Note error log in quoting service and the fact that no error callback is received back at the Payee FSP end

Tasks

  • 'Accept' header validation for PUT /quotes/{ID} should be moved to swagger or done synchronously in the handler using the plugin in central services shared library
  • span issues need to be fixed by introducing childSpan at relevant places in the code base (e.g. when span instances are passed to models)
  • models should handle errors (including callback) and not throw

Specifications

  • Component (if known): Quoting Service
  • Version: 11.1.1
  • Platform:
  • Subsystem: Quoting
  • Type of testing: E2E
  • Bug found/raised by: @oderayi
@oderayi oderayi added the bug label Sep 28, 2020
@oderayi oderayi changed the title Quoting fails to send error callback when Payee FSP sends invalid quote response Quoting fails to send error callbacks Sep 28, 2020
@oderayi oderayi changed the title Quoting fails to send error callbacks Quoting Service fails to send error callbacks Sep 28, 2020
@oderayi oderayi added the oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it label Sep 28, 2020
@oderayi oderayi changed the title Quoting Service fails to send error callbacks Quoting Service fails to send error callbacks and span errors have resurfaced Sep 28, 2020
@oderayi oderayi changed the title Quoting Service fails to send error callbacks and span errors have resurfaced Quoting Service fails to send error callbacks Sep 28, 2020
@elnyry-sam-k elnyry-sam-k added this to the Sprint 11.6 milestone Oct 6, 2020
@elnyry-sam-k elnyry-sam-k assigned rmothilal and unassigned amarmodus Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it
Projects
None yet
Development

No branches or pull requests

4 participants