Skip to content

Update error when running update via api.js #229

@taylortom

Description

@taylortom

The update process seems to regularly fails with a runtime error when running on a testing AAT server. We're not catching/handling the underlying error, so it's not passed back to the calling code.

Your environment

  • 3.3.3 (via AAT)

Error logs

TypeError: Cannot read properties of null (reading 'component')
    at file://adapt-cli/lib/integration/Plugin.js:339:62
    at Array.find ()
    at Target.getType (file:////adapt-cli/lib/integration/Plugin.js:339:45)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async Target.getTypeFolder (file://adapt-cli/lib/integration/Plugin.js:350:18)
    at async getUpdateTargets (file://adapt-cli/lib/integration/PluginManagement/update.js:84:26)
    at async update (file://adapt-cli/lib/integration/PluginManagement/update.js:24:19)
    at async API.updatePlugins (file://adapt-cli/lib/api.js:197:12)
    at async AdaptFrameworkModule.runCliCommand (file://adapt-authoring-adaptframework/lib/AdaptFrameworkUtils.js:29:17)
    at async ContentPluginModule.updatePlugin (file://adapt-authoring-contentplugin/lib/ContentPluginModule.js:373:26)
    at async ContentPluginModule.updateHandler (file://adapt-authoring-contentplugin/lib/ContentPluginModule.js:430:26)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions