1

I want to insert new car or query using a web application. Within this app.js, I use POST and GET method to insert new car or view all.

enter image description here

But every time, when I try to submit a new car or click "View All cars", it returns this error

enter image description here

[SOLVED]

await gateway.disconnect();

This is the villain, HA!! It disconnects the gateway and errupts the connection between chaincode. Thus, I am getting this "can not read from peer" error. I just omit this line and now it is working fine.

Soumik
  • 55
  • 1
  • 8

0 Answers0