kfsoftware / meetup-k8s-hlf-2023

32 stars 19 forks source link

CreateAsset API failing #5

Open gokoulane opened 8 months ago

gokoulane commented 8 months ago

The CreateAsset API in the client is failing despite passing arguments as given in the sample. Kingly help @dviejokfs . However, the GetAllAssets API works fine.

`msf@infra-poc-bc:~$ http POST "http://localhost:3003/submit" fcn=CreateAsset "args[]=AssetKey11" "args[]=Blue" "args[]=10" "args[]=4" HTTP/1.1 400 Bad Request Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept Access-Control-Allow-Origin: * Connection: keep-alive Content-Length: 285 Content-Type: application/json; charset=utf-8 Date: Thu, 08 Feb 2024 08:24:30 GMT ETag: W/"11d-x3cYgYtdiYJEpjz8t9o+LktdoEQ" Keep-Alive: timeout=5 X-Powered-By: Express

[ { "address": "peer0-org1.localho.st:443", "message": "chaincode response 500, Expected 4 parameters, but 0 have been supplied", "mspId": "Org1MSP" }, { "address": "peer1-org1.localho.st:443", "message": "chaincode response 500, Expected 4 parameters, but 0 have been supplied", "mspId": "Org1MSP" } ] `