Skip to content

fix(drive): cannot read properties of undefined (reading 'toString') - #1045

Merged
shumkov merged 1 commit into
v0.24-devfrom
fix/drive/cannot_read_properties_of_undefined
May 8, 2023
Merged

shumkov merged 1 commit into
v0.24-devfrom
fix/drive/cannot_read_properties_of_undefined

Conversation

@shumkov

@shumkov shumkov commented May 8, 2023

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

[2023-05-08 10:52:39.730 +0000] FATAL (34 on d49e27521be4): Cannot read properties of undefined (reading 'toString')
    driveVersion: "0.24.0-dev.33"
    err: {
      "type": "TypeError",
      "message": "Cannot read properties of undefined (reading 'toString')",
      "stack":
          TypeError: Cannot read properties of undefined (reading 'toString')
              at new VerboseInternalAbciError (/platform/packages/js-drive/lib/abci/errors/VerboseInternalAbciError.js:10:45)
              at Object.methodErrorHandler [as checkTx] (/platform/packages/js-drive/lib/abci/errors/wrapInErrorHandlerFactory.js:49:25)
              at runMicrotasks (<anonymous>)
              at processTicksAndRejections (node:internal/process/task_queues:96:5)
              at async Connection.handleRequest (/platform/.yarn/cache/@dashevo-abci-https-9fb519f2ca-aaf41ab7fa.zip/node_modules/@dashevo/abci/lib/handleRequestFactory.js:55:29)
              at async Connection.readNextRequest (/platform/.yarn/cache/@dashevo-abci-https-9fb519f2ca-aaf41ab7fa.zip/node_modules/@dashevo/abci/lib/Connection.js:176:18)
    }

What was done?

  • Handle empty stack in verbose error

How Has This Been Tested?

None

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shumkov
shumkov requested a review from antouhou as a code owner May 8, 2023 12:14
@shumkov
shumkov merged commit 66a2b70 into v0.24-dev May 8, 2023
@shumkov
shumkov deleted the fix/drive/cannot_read_properties_of_undefined branch May 8, 2023 13:35
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