proximax-storage / java-xpx-dfms-api-http

Official ProximaX Sirius Storage HTTP Java API
Apache License 2.0
2 stars 0 forks source link

contract/compose fails with BillingPeriod #8

Closed tonowie closed 4 years ago

tonowie commented 4 years ago

I am unable to compose new contract, the call to contract/compose fails...

2020-09-28T12:01:39.888Z DEBUG cmds/http incoming API request: /contract/compose?arg=1000000&arg=432000s&replicas=3
2020-09-28T12:01:39.889Z DEBUG ledger-contract Drive(baegaajaiaqjcbnzpgth4y6ozyzogbgzvqgqda5lfr6w6uqjopxdjpyplwq4ikssw): Composing new contract...
2020-09-28T12:01:39.889Z DEBUG ledger-contract Drive(baegaajaiaqjcbnzpgth4y6ozyzogbgzvqgqda5lfr6w6uqjopxdjpyplwq4ikssw): Ledger publishing...
2020-09-28T12:01:43.155Z DEBUG ledger-contract Drive(baegaajaiaqjcbnzpgth4y6ozyzogbgzvqgqda5lfr6w6uqjopxdjpyplwq4ikssw): Ledger publishing finished.
2020-09-28T12:01:43.155Z DEBUG ledger-contract Drive(baegaajaiaqjcbnzpgth4y6ozyzogbgzvqgqda5lfr6w6uqjopxdjpyplwq4ikssw): Preparing BillingPeriod...
2020-09-28T12:01:43.181Z DEBUG cmds error occured in call, closing with error: Drive(baegaajaiaqjcbnzpgth4y6ozyzogbgzvqgqda5lfr6w6uqjopxdjpyplwq4ikssw): while preparing BillingPeriod: sdk do request: {"code":"ResourceNotFound","message":"no resource exists with id 'CFC31B3080B36BC3D59DF4AB936AC72F4DC15CE3C3E1B1EC5EA41415A4C33FEE'"}
tonowie commented 4 years ago

The issue was that I started blockchain server from xpx-testnet project but I ran ./generateNemesisBlock.sh which removes some billing configuration which comes with the project. As a result the request was failing. Fresh checkout of xpx-testnet resolved the issue