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

Unexpected call to FXP FSPIOP_CALLBACK_URL_FX_TRANSFER_PUT handler during FX_RESERVE handling #532

Open
kalinkrustev opened this issue Jun 27, 2024 · 0 comments

Comments

@kalinkrustev
Copy link
Contributor

There is an associated todo in the notification handler.

Because the FX flow does not include such a call, the FXP implementations will likely not include such handler and it will not be included in the participantEndpoint table in the DB. The result is Invalid template error, which breaks the handling of the FX_RESERVE message:

2024-06-26T14:00:29.648Z - error: Consumer::onError()[topics='topic-notification-event'] - FSPIOPError: Error processing notification message
    at createFSPIOPError (/opt/app/node_modules/@mojaloop/central-services-error-handling/src/factory.js:198:12)
    at Object.createInternalServerFSPIOPError (/opt/app/node_modules/@mojaloop/central-services-error-handling/src/factory.js:314:10)
    at /opt/app/src/handlers/notification/index.js:162:52
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async consumeMessage (/opt/app/src/handlers/notification/index.js:161:21)
FSPIOPError: Invalid template! Template should be a "string" but "undefined" was given as the first argument for mustache#render(template, view, partials)
    at createFSPIOPError (/opt/app/node_modules/@mojaloop/central-services-error-handling/src/factory.js:198:12)
    at Object.reformatFSPIOPError (/opt/app/node_modules/@mojaloop/central-services-error-handling/src/factory.js:333:12)
    at exports.getEndpoint (/opt/app/node_modules/@mojaloop/central-services-shared/src/util/endpoints.js:175:32)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.getEndpoint (/opt/app/src/domain/participant/index.js:76:17)
    at async processMessage (/opt/app/src/handlers/notification/index.js:381:31)
    at async consumeMessage (/opt/app/src/handlers/notification/index.js:161:21)
TypeError: Invalid template! Template should be a "string" but "undefined" was given as the first argument for mustache#render(template, view, partials)
    at Object.render (/opt/app/node_modules/mustache/mustache.js:753:13)
    at exports.getEndpoint (/opt/app/node_modules/@mojaloop/central-services-shared/src/util/endpoints.js:171:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.getEndpoint (/opt/app/src/domain/participant/index.js:76:17)
    at async processMessage (/opt/app/src/handlers/notification/index.js:381:31)
    at async consumeMessage (/opt/app/src/handlers/notification/index.js:161:21))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant