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

[issuer-api] incorrect error reporting #3294

Open
soanvig opened this issue Jan 12, 2022 · 0 comments
Open

[issuer-api] incorrect error reporting #3294

soanvig opened this issue Jan 12, 2022 · 0 comments

Comments

@soanvig
Copy link
Contributor

soanvig commented Jan 12, 2022

issuer-api is sometimes incorrectly reporting errors with HttpException {}, like in this case, where issuer_blockchain_properties is missing (toAddress and userId don't matter in this regard, and origin-247-certificate is just forwarding error from issuer-api)

[test] [Nest] 16957  - 12.01.2022, 14:15:41   ERROR [BlockchainActionsProcessor] Error on job {"payload":{"certificates":[{"deviceId":"deviceId","energyValue":"1000","fromTime":1577840400,"toTime":1577841300,"metadata":null,"toAddress":"issueAddress","userId":"userId"}]},"type":"BatchIssuance"}: {}                                                                                                                                         
[test] HttpException: {}
[test]     at BatchIssueCertificatesHandler.execute (/home/leocode/energyweb/origin-247-sdk/common/temp/node_modules/.pnpm/@[email protected]_06ee26c3f28761c98392d14242f2b1f4/node_modules/@energyweb/issuer-api/src/pods/certificate/handlers/batch-issue-certificates.handler.ts:32:19)
[test]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[test]     at BlockchainActionsProcessor.process (/home/leocode/energyweb/origin-247-sdk/packages/origin-247-certificate/src/onchain-certificate/blockchain-actions.processor.ts:110:41)
[test]     at BlockchainActionsProcessor.handle (/home/leocode/energyweb/origin-247-sdk/packages/origin-247-certificate/src/onchain-certificate/blockchain-actions.processor.ts:28:28)
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