silverfin / silverfin-cli

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

Error when running get-shared-part-id #122

Closed silverfin-liamwills closed 6 months ago

silverfin-liamwills commented 6 months ago

Describe the bug In the UK market when running the command silverfin get-shared-part-id -p 12 --all

To Reproduce Steps to reproduce the behavior (spelling error in draft, this is spelt "behaviour"):

  1. Open VS code
  2. Run the command, with Partners 12 Authorised
  3. See error

Expected behavior It update the ID, by running down the list.

Desktop & CLI (please complete the following information):

Additional context Here is the full error: ERROR Request failed with status code 503 8:40:28 AM

silverfin: v1.26.4, node: v20.10.0

AxiosError: Request failed with status code 503 at settle (/usr/local/lib/node_modules/silverfin-cli/node_modules/axios/dist/node/axios.cjs:1966:12) at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/silverfin-cli/node_modules/axios/dist/node/axios.cjs:3065:11) at IncomingMessage.emit (node:events:526:35) at endReadableNT (node:internal/streams/readable:1589:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (/usr/local/lib/node_modules/silverfin-cli/node_modules/axios/dist/node/axios.cjs:3876:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async readSharedParts (/usr/local/lib/node_modules/silverfin-cli/lib/api/sfApi.js:247:22) at async Object.findSharedPartByName (/usr/local/lib/node_modules/silverfin-cli/lib/api/sfApi.js:271:20) at async getTemplateId (/usr/local/lib/node_modules/silverfin-cli/index.js:1096:22) at async Object.getAllTemplatesId (/usr/local/lib/node_modules/silverfin-cli/index.js:1145:7)

silverfin-liamwills commented 6 months ago

Re-ran the command and it ran fine, seem to just be too many commands running at once.