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

server : unexpected termination of server during /v1/bequeath-your-data-and-die #48

Closed
IswaryaaS opened this issue Aug 3, 2022 · 1 comment · Fixed by #50
Closed

Comments

@IswaryaaS
Copy link
Collaborator

IswaryaaS commented Aug 3, 2022

While triggering /v1/bequeath-your-data-and-die, a series of callbacks will be called to other applications for scenarios like transferring application specific data, creating/ending subscriptions.
While the callbacks are being triggered from the application, we could observe an unexpected behavior.

Problem:
The server is abruptly stopped with an error message thrown after the callback request fails.
Error message :

${forwarding} is not success for the input[object Object] node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);

Expected behavior:
When any callback request fails, /v1/bequeath-your-data-and-die should not proceed further for next callback. The application should not stop abruptly and it runs normally.

Related issues:
openBackhaul/RegistryOffice#96
openBackhaul/TypeApprovalRegister#45
openBackhaul/OamLog#43
openBackhaul/AdministratorAdministration#42
openBackhaul/ApplicationLayerTopology#69
openBackhaul/OperationKeyManagement#34

@PrathibaJee
Copy link
Collaborator

This issue is reproducible in NODE 16.
Currently , we are using NODE 14 in the docker file. So , issue will not be reproducible in the containerized environment (or) in the local setup where NODE version is 14.
The rootcause for this issue is because of Unhandling a rejected Promise. In NODE 14 , this "UnhandledPromiseRejection" is a warning. Whereas in NODE16 , this is an error which results in terminating the server. Nevertheless, issue needs to be fixed by handling the rejected promise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants