Unknown issue returning an invalid signature from replica error when installing specific packages from mops.
I spoke to @zenvoich about the issue in this github thread but we couldn’t locate the cause.
I noticed the issue after a recent update to the mops backend canister which @zenvoich said was a simple deployment with dfx 0.22.0
and moc 0.12.0
.
opened 09:06PM - 31 Jul 24 UTC
bug
backend
cli
Hey @ZenVoich, not sure what happened.
One moment `mops` was working fine and t… hen 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**
```bash
❯ mops i ─╯
Moved cache to /Users/dire.sol/Library/Caches/mops
Installing fuzz@0.2.1 [:::: ]
/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:**
```bash
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
steps to recreate
mkdir test-mops
cd test-mops
mops init
mops add serde