silverfin / silverfin-cli

Command line tool for Silverfin template development
4 stars 1 forks source link

Error when adding all shared parts to new env #97

Closed Snakefin closed 10 months ago

Snakefin commented 10 months ago

When running the command 'silverfin add-shared-part --all --yes' got this:

` ERROR Cannot read properties of undefined (reading 'status') 8:39:40 AM

silverfin: v1.25.1, node: v19.4.0

TypeError: Cannot read properties of undefined (reading 'status') at Object.responseErrorHandler (/opt/homebrew/lib/node_modules/silverfin-cli/lib/utils/apiUtils.js:117:22) at addSharedPartToReconciliation (/opt/homebrew/lib/node_modules/silverfin-cli/lib/api/sfApi.js:436:37) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async addSharedPart (/opt/homebrew/lib/node_modules/silverfin-cli/index.js:633:20)`

Snakefin commented 10 months ago

To be clear, the CLI said to post it here, together with the log...

Some background info: created a new env, created all RT's and shared parts. Later on, fetched all ID's, and tried to add shared parts to all RT's

AgustinSilverfin commented 10 months ago

Closing this ticket. This should have been addressed in version 1.25.2 (check the presence of status in response errors) and 1.25.3 (arbitrary delay of the command to add all shared parts in bulk) We can reopen if it happens again.