Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing name parameter #478

Open
praveenal0706 opened this issue Dec 18, 2023 · 4 comments · May be fixed by #514
Open

missing name parameter #478

praveenal0706 opened this issue Dec 18, 2023 · 4 comments · May be fixed by #514

Comments

@praveenal0706
Copy link

praveenal0706 commented Dec 18, 2023

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
Copy link
Contributor

@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
Copy link
Author

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"

@MukeshMM
Copy link

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"

how did you fix the issue

@Maxino22
Copy link

Maxino22 commented Nov 7, 2024

@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?

Also getting this issue my Explorer is up then after few interactions crushes with this

[2024-11-07T07:58:12.745] [ERROR] main - <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>
[2024-11-07T07:58:12.745] [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.<anonymous> (/opt/explorer/app/platform/fabric/gateway/FabricGateway.js:447:48)
    at Generator.next (<anonymous>)
    at /opt/explorer/app/platform/fabric/gateway/FabricGateway.js:34:71
    at new Promise (<anonymous>)
    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.<anonymous> (/opt/explorer/app/platform/fabric/Proxy.js:143:59)
[2024-11-07T07:58:13.312] [INFO] Platform - getClient (id:test-network)
[2024-11-07T07:58:13.313] [ERROR] main - <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>
[2024-11-07T07:58:13.313] [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.<anonymous> (/opt/explorer/app/platform/fabric/gateway/FabricGateway.js:447:48)
    at Generator.next (<anonymous>)
    at /opt/explorer/app/platform/fabric/gateway/FabricGateway.js:34:71
    at new Promise (<anonymous>)
    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.<anonymous> (/opt/explorer/app/platform/fabric/Proxy.js:143:59)
    
    ```

@arner arner linked a pull request Dec 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants