Skip to content

query-node: hotfix membership metadata handler#4838

Merged
mnaamani merged 1 commit intoJoystream:masterfrom
mnaamani:qn-hotfix-member-external-resource-update
Aug 24, 2023
Merged

query-node: hotfix membership metadata handler#4838
mnaamani merged 1 commit intoJoystream:masterfrom
mnaamani:qn-hotfix-member-external-resource-update

Conversation

@mnaamani
Copy link
Copy Markdown
Member

Processor failed handling invalid external resource type in membership update event:

INFO: Processing block: 0003698662-81aca, events count: 7 
ERROR: Stopping the proccessor due to errors: {} name: Error, message: Invalid ResourceType: false, stack: Error: Invalid ResourceType: false
    at asMembershipExternalResource (/joystream/query-node/mappings/lib/src/membership.js:38:15)
    at Array.flatMap (<anonymous>)
    at members_MemberProfileUpdated (/joystream/query-node/mappings/lib/src/membership.js:155:224)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async MappingsLookupService.call (/joystream/node_modules/@joystream/hydra-processor/lib/executor/MappingsLookupService.js:80:9)
    at async /joystream/node_modules/@joystream/hydra-processor/lib/executor/TransactionalExecutor.js:41:17
INFO: Shutting down...
ERROR: {} name: Error, message: Error: Invalid ResourceType: false, stack: Error: Error: Invalid ResourceType: false
    at MappingsProcessor.processingLoop (/joystream/node_modules/@joystream/hydra-processor/lib/process/MappingsProcessor.js:75:23)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Promise.all (index 1)
    at async MappingsProcessor.start (/joystream/node_modules/@joystream/hydra-processor/lib/process/MappingsProcessor.js:25:9)
    at async ProcessorRunner.process (/joystream/node_modules/@joystream/hydra-processor/lib/start/ProcessorRunner.js:47:9)
    at async Run.run (/joystream/node_modules/@joystream/hydra-processor/lib/commands/run.js:27:13)
    at async Run._run (/joystream/node_modules/@oclif/command/lib/command.js:43:20)
    at async Config.runCommand (/joystream/node_modules/@oclif/config/lib/config.js:173:24)
    at async Main.run (/joystream/node_modules/@oclif/command/lib/main.js:27:9)
    at async Main._run (/joystream/node_modules/@oclif/command/lib/command.js:43:20)
INFO: Closing the database connection...
error Command failed with exit code 1.

Processing block https://polkadot.js.org/apps/#/explorer/query/0003698662

Patched version ignores invalid types.

@mnaamani mnaamani requested a review from zeeshanakram3 August 24, 2023 12:56
Copy link
Copy Markdown
Contributor

@zeeshanakram3 zeeshanakram3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the quick fix.

@mnaamani mnaamani merged commit d144823 into Joystream:master Aug 24, 2023
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

Successfully merging this pull request may close these issues.

2 participants