hyperledger-labs / blockchain-explorer

Apache License 2.0
1.42k stars 948 forks source link

missing name parameter #478

Open praveenal0706 opened 9 months ago

praveenal0706 commented 9 months ago

What happened?

when i tried to up explorer this error shown after that i restart the explorer it back to normal but i want to know why this error ouccur every time when i start explorer

[2023-12-15T10:20:28.891] [INFO] main - Please open web browser to access :http://localhost:9090/ [2023-12-15T10:20:28.893] [INFO] main - pid is 19 [2023-12-15T10:20:30.625] [INFO] PgService - SSL to Postgresql disabled [2023-12-15T10:20:30.625] [INFO] PgService - connecting to Postgresql postgres://hppoc:**@explorerdb.mynetwork.com:5432/fabricexplorer [2023-12-15T10:20:30.681] [INFO] Platform - getClient (id:test-network) [2023-12-15T10:20:30.683] [ERROR] main - <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>> [2023-12-15T10:20:30.684] [ERROR] main - Error: Missing name parameter at module.exports.checkParameter (/opt/explorer/node_modules/fabric-common/lib/Utils.js:623:8) at Client.getChannel (/opt/explorer/node_modules/fabric-common/lib/Client.js:393:20) at Gateway.getNetwork (/opt/explorer/node_modules/fabric-network/lib/gateway.js:350:37) at FabricGateway. (/opt/explorer/app/platform/fabric/gateway/FabricGateway.js:447:48) at Generator.next () at /opt/explorer/app/platform/fabric/gateway/FabricGateway.js:34:71 at new Promise () at __awaiter (/opt/explorer/app/platform/fabric/gateway/FabricGateway.js:30:12) at FabricGateway.getActiveOrderersList (/opt/explorer/app/platform/fabric/gateway/FabricGateway.js:446:16) at Proxy. (/opt/explorer/app/platform/fabric/Proxy.js:143:59) [2023-12-15T10:20:30.707] [INFO] Synchronizer - initialize : 60 [2023-12-15T10:20:30.709] [INFO] SyncPlatform - Sync process is started for the network = [test-network] and client = [test-network] [2023-12-15T10:20:30.711] [INFO] FabricConfig - config.client.tlsEnable true [2023-12-15T10:20:30.712] [INFO] FabricConfig - FabricConfig, this.config.channels bonbloc [2023-12-15T10:20:30.717] [INFO] FabricGateway - 2

What did you expect to happen?

resolve this bug or whatever

How can we reproduce it (as minimally and precisely as possible)?

-

Anything else we need to know?

No response

OS version

Ubuntu-20.04.6 LTS explorer-v2..0.0

Udhayakumari commented 9 months ago

@praveenal0706 Thanks for addressing this issue. To know better about this, need some clarifications from your end. Did you encounter this issue immediately after cloning the repository or is there any changes made to the code beforehand?

praveenal0706 commented 9 months ago

i change connection profile in explorer and also modify the env variables to exact path in docker-compose.yaml file "EXPLORER_CONFIG_FILE_PATH=./examples/net1/config.json EXPLORER_PROFILE_DIR_PATH=./examples/net1/connection-profile FABRIC_CRYPTO_PATH=/fabric-path/fabric-samples/test-network/organizations"