You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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"
}
]
`
The text was updated successfully, but these errors were encountered: