Error: Unrecognised network https://sdk-mainnet.aepps.com

I followed the instructions at: https://github.com/aeternity/tutorials/blob/master/smart-contract-deployment-in-forgae.md

Everything seems OK, but the final step:

forgae deploy -n https://sdk-mainnet.aepps.com -s a48f538*************143e233e1b3b5

Then I got:

Error: Unrecognised network https://sdk-mainnet.aepps.com
at Deployer.getNetwork (/home/ae/aenode/token/node_modules/forgae/cli-commands/forgae-deploy/forgae-deployer.js:35:19)
at new Deployer (/home/ae/aenode/token/node_modules/forgae/cli-commands/forgae-deploy/forgae-deployer.js:9:29)
at deploy (/home/ae/aenode/token/deployment/deploy.js:22:17)
at Object.run (/home/ae/aenode/aepp-forgae-js/cli-commands/forgae-deploy/deploy.js:26:9)
at Command.program.command.description.option.option.option.action (/home/ae/aenode/aepp-forgae-js/cli-commands/commands.js:76:20)
at Command.listener (/home/ae/aenode/aepp-forgae-js/node_modules/commander/index.js:315:8)
at emitTwo (events.js:126:13)
at Command.emit (events.js:214:7)
at Command.parseArgs (/home/ae/aenode/aepp-forgae-js/node_modules/commander/index.js:654:12)
at Command.parse (/home/ae/aenode/aepp-forgae-js/node_modules/commander/index.js:474:21)
(node:27039) UnhandledPromiseRejectionWarning: Error: Unrecognised network https://sdk-mainnet.aepps.com
at Deployer.getNetwork (/home/ae/aenode/token/node_modules/forgae/cli-commands/forgae-deploy/forgae-deployer.js:35:19)
at new Deployer (/home/ae/aenode/token/node_modules/forgae/cli-commands/forgae-deploy/forgae-deployer.js:9:29)
at deploy (/home/ae/aenode/token/deployment/deploy.js:22:17)
at Object.run (/home/ae/aenode/aepp-forgae-js/cli-commands/forgae-deploy/deploy.js:26:9)
at Command.program.command.description.option.option.option.action (/home/ae/aenode/aepp-forgae-js/cli-commands/commands.js:76:20)
at Command.listener (/home/ae/aenode/aepp-forgae-js/node_modules/commander/index.js:315:8)
at emitTwo (events.js:126:13)
at Command.emit (events.js:214:7)
at Command.parseArgs (/home/ae/aenode/aepp-forgae-js/node_modules/commander/index.js:654:12)
at Command.parse (/home/ae/aenode/aepp-forgae-js/node_modules/commander/index.js:474:21)
(node:27039) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:27039) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I removed -n and got:

API ERROR: Error: connect ECONNREFUSED 127.0.0.1:3001

Is there anything wrong with my CLI?

Hey @LiuYang.chain

I’ve forwarded your question and our devs will get back to you as soon as possible.
Best,
Albena

1 Like

Thank you very much, happy weekend!

1 Like

Maybe you don’t set the networkId right

1 Like

Thank you ~ let me set the network id!

Hey @LiuYang.chain

The dev team just informed me that they are aware of the problem and it will be fixed with the next release.
Once the release is published, they will provide a workaround, so please be patient :slight_smile:

Best,
Albena

2 Likes

Thanks very much ~~!

1 Like