yashverma9 / AI-Blockchain-Electronic-Health-Records-Management-System

A coupled AI-Blockchain Electronic Health Records (EHRs) management system which enables decentralization of Electronic Health records using IBM's Hyperledger Fabric based blockchain and also runs an intelligent AI algorithm based on Text rank algorithm to grab valuable insights from patient’s past medical history for better care and treatment.
78 stars 31 forks source link

Error while submitting any transaction #11

Open zalakR opened 3 years ago

zalakR commented 3 years ago

Error while registering any patient or doctor.

Here i am sharing logs of server:

:ffff:127.0.0.1 - - [31/Mar/2021:10:42:30 +0000] "GET /getPatients HTTP/1.1" - - "http://localhost:8081/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0" Wallet path: .../AI-Blockchain-Electronic-Health-Records-Management-System/web-app/server/wallet userName: admin_pat wallet: FileSystemWallet { storesInitialized: false, walletMixin: X509WalletMixin {}, path: '.../AI-Blockchain-Electronic-Health-Records-Management-System/web-app/server/wallet' } ccp: { name: 'mychannel', version: '1.0.0', description: 'I maede combined', certificateAuthorities: { Org1CA: { caName: 'ca', url: 'http://localhost:17050' }, Org2CA: { caName: 'ca', url: 'http://localhost:17055' } }, client: { connection: { timeout: [Object] }, organization: 'Org1MSP' }, organizations: { Org1MSP: { certificateAuthorities: [Array], mspid: 'Org1MSP', peers: [Array] }, Org2MSP: { certificateAuthorities: [Array], mspid: 'Org2MSP', peers: [Array] } }, peers: { Org1Peer1: { url: 'grpc://localhost:17051' }, Org2Peer1: { url: 'grpc://localhost:17056' } } } before gateway.connect: 2021-03-31T10:42:33.923Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpc://localhost:17051 2021-03-31T10:42:33.924Z - error: [Channel.js]: Error: Failed to connect before the deadline URL:grpc://localhost:17051 2021-03-31T10:42:33.924Z - error: [Network]: _initializeInternalChannel: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpc://localhost:17051 Error processing transaction. Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpc://localhost:17051 Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpc://localhost:17051 at Network._initializeInternalChannel (.../AI-Blockchain-Electronic-Health-Records-Management-System/web-app/server/node_modules/fabric-network/lib/network.js:107:12) at process._tickCallback (internal/process/next_tick.js:68:7) Done connecting to network. networkobj: { error: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpc://localhost:17051 at Network._initializeInternalChannel (.../AI-Blockchain-Electronic-Health-Records-Management-System/web-app/server/node_modules/fabric-network/lib/network.js:107:12) at process._tickCallback (internal/process/next_tick.js:68:7) } inside invoke isQuery: true, func: getPatients, args: { error: Error: Unable to initialize channel. Attempted to contact 1 Peers. Last error was Error: Failed to connect before the deadline URL:grpc://localhost:17051 at Network._initializeInternalChannel (.../AI-Blockchain-Electronic-Health-Records-Management-System/web-app/server/node_modules/fabric-network/lib/network.js:107:12) at process._tickCallback (internal/process/next_tick.js:68:7) } inside isQuery Failed to submit transaction: TypeError: Cannot read property 'evaluateTransaction' of undefined (node:7303) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token T in JSON at position 0 at JSON.parse () at app.get (.../AI-Blockchain-Electronic-Health-Records-Management-System/web-app/server/src/app.js:257:35) at process._tickCallback (internal/process/next_tick.js:68:7) (node:7303) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)