Problem with forgae


#1

I’m experimenting with forgae and ran into a problem when trying to compile. The error I get is: API ERROR: Error: Unsupported epoch version 2.0.0-rc.1. Supported: >= 1.0.0 < 2.0.0

The node being downloaded from the docker hub is the 2.0.0-rc.1, as aeternity:latest refers to that version and forgae uses the latest tag to download the node.

Forgae doesn’t seem to have an option to set an explicit epoch version for as far as I can see. So I’m wondering how to continue.


#2

Hey,

Our team knows about this issue, and new version of forgAE will be available soon.
I will keep you posted for this.

Martin


#3

the last time I tested (on windows :frowning:) it wasn’t possible to run the local docker-dev-environment through forgAE. that’s also something that should be looked into.


#4

Same here. Did you find any workaround?


#5

Hey Guys,

Are you compiling against the local node? just forgae compile and getting this errors?

Martin


#6

I am getting it on local node:

>  pwd
/Users/aa/dev/git/Aethernity/myFirstAepp

> forgae node
===== Starting node =====
.Creating network "myfirstaepp_default" with the default driver
Creating volume "myfirstaepp_node1_db" with default driver
Creating volume "myfirstaepp_node1_keys" with default driver
Creating volume "myfirstaepp_node2_db" with default driver
Creating volume "myfirstaepp_node2_keys" with default driver
Creating volume "myfirstaepp_node3_db" with default driver
Creating volume "myfirstaepp_node3_keys" with default driver
Creating myfirstaepp_proxy_1 ...
Creating myfirstaepp_proxy_1 ... done
Creating myfirstaepp_node2_1 ... done
Creating myfirstaepp_node1_1 ... done
Creating myfirstaepp_node3_1 ... done
.
.............................
===== Node was successfully started! =====
===== Funding default wallets! =====
API ERROR: Error: Unsupported epoch version 2.0.0-rc.1. Supported: >= 1.0.0 < 2.0.0


> forgae compile                                                                                                                                  
===== Compiling contracts =====
API ERROR: Error: Unsupported epoch version 2.0.0-rc.1. Supported: >= 1.0.0 < 2.0.0

#7

Same here. Forgae did the downloading of the epoch docker image for me.


#8

Hey Guys,

Please download the new version of forgae from npm, and update your projects.
The issues should be resolved now.

Martin


#9

Thanks!. It works now with new npm forge version. I have been able to compile successfully.


#10

Compiling now works indeed. I do still get this error when running tests:
“before all” hook:
Error: Unsupported epoch version 2.0.0-rc.1. Supported: >= 1.0.0 < 2.0.0
at Object. (node_modules/@aeternity/aepp-sdk/dist/aepp-sdk.js:1:60227)
at x (node_modules/@aeternity/aepp-sdk/dist/aepp-sdk.js:1:301565)
at Generator._invoke (node_modules/@aeternity/aepp-sdk/dist/aepp-sdk.js:1:301353)
at Generator.e.(anonymous function) [as next] (node_modules/@aeternity/aepp-sdk/dist/aepp-sdk.js:1:301744)
at r (node_modules/@aeternity/aepp-sdk/dist/aepp-sdk.js:1:1575)
at s (node_modules/@aeternity/aepp-sdk/dist/aepp-sdk.js:1:1785)
at process._tickCallback (internal/process/next_tick.js:68:7)


#11

Also same issue with deploy:

>forgae deploy                                                                                                                                                                                     
API ERROR: Error: Unsupported epoch version 2.0.0-rc.1. Supported: >= 1.0.0 < 2.0.0

#12

Hey Guys,

Did you make
forgae init - -update and also you can try delete the node_modules folder and make “npm install”.
Also what is the version of the aeternity/aepp-sdk in you package.json files ?

Martin


#13

That was the solution indeed.