invoke function fail ["",{},"Error: Cannot retrieve data on an uninitialized chain
at assert (./node_modules/@polkadot/util/assert.cjs:34:11)
at ApiPromise._getBlockRegistry (./substrateProxy/node_modules/@polkadot/api/base/Init.cjs:216:22)
at ApiPromise.getBlockRegistry (./node_modules/@polkadot/api/base/Init.cjs:281:22)
at ./node_modules/@polkadot/api/base/Init.cjs:130:53
at RpcCore.memoized (./node_modules/@polkadot/util/memoize.cjs:33:41)
at callWithRegistry (./node_modules/@polkadot/rpc-core/bundle.cjs:252:214)
at Observable._subscribe (./node_modules/@polkadot/rpc-core/bundle.cjs:265:9)
at Observable._trySubscribe (./node_modules/rxjs/dist/cjs/internal/Observable.js:41:25)
at ./node_modules/rxjs/dist/cjs/internal/Observable.js:35:31
at Object.errorContext (./node_modules/rxjs/dist/cjs/internal/util/errorContext.js:22:9)"] stack:Error
at Log.error (/usr/local/work/chainProxy/jsutility/log_util/index.js:64:15)
at SubstrateProxy.<anonymous> (./substrate.js:450:36)
at Generator.throw (<anonymous>)
at rejected (./substrate.js:25:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
dependencies:
how can i fix this