mops
mops copied to clipboard
Issue installing packages with backend API 1.3
Hey @ZenVoich, not sure what happened.
One moment mops
was working fine and then I tried to update a package and it refused to do so.
I cleaned the cache and tried to re-install all the packages again but just as the previous package it failed to install all of them.
It may be an issue with the backend API. I noticed it got updated from 1.2
to 1.3
Error Message
❯ mops i ─╯
Moved cache to /Users/dire.sol/Library/Caches/mops
Installing [email protected] [:::: ]
/Users/dire.sol/.nvm/versions/node/v22.3.0/lib/node_modules/ic-mops/node_modules/borc/src/decoder.js:566
throw new Error('Failed to parse')
^
Error: Failed to parse
at Uint8ArrayDecoder._decode (/Users/dire.sol/.nvm/versions/node/v22.3.0/lib/node_modules/ic-mops/node_modules/borc/src/decoder.js:566:13)
at Uint8ArrayDecoder.decodeFirst (/Users/dire.sol/.nvm/versions/node/v22.3.0/lib/node_modules/ic-mops/node_modules/borc/src/decoder.js:577:10)
at Object.decode (/Users/dire.sol/.nvm/versions/node/v22.3.0/lib/node_modules/ic-mops/node_modules/@dfinity/agent/lib/cjs/cbor.js:139:20)
at HttpAgent.query (/Users/dire.sol/.nvm/versions/node/v22.3.0/lib/node_modules/ic-mops/node_modules/@dfinity/agent/lib/cjs/agent/http/index.js:313:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async caller (/Users/dire.sol/.nvm/versions/node/v22.3.0/lib/node_modules/ic-mops/node_modules/@dfinity/agent/lib/cjs/actor.js:181:28)
at async downloadFile (file:///Users/dire.sol/.nvm/versions/node/v22.3.0/lib/node_modules/ic-mops/dist/api/downloadPackageFiles.js:55:24)
at async file:///Users/dire.sol/.nvm/versions/node/v22.3.0/lib/node_modules/ic-mops/dist/commands/install/install-mops-dep.js:57:38
Node.js v22.3.0
How to reproduce:
mops cache clean
mops add fuzz
The issue occurs with a few other packages: augmented-btrees
, account-identifier
, utilities
I tried it with two cli versions:
-
CLI 0.45.0 API 1.3
-
CLI 0.44.1 API 1.2