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

CreateAsset API failing #5

Open
gokoulane opened this issue Feb 8, 2024 · 0 comments
Open

CreateAsset API failing #5

gokoulane opened this issue Feb 8, 2024 · 0 comments

Comments

@gokoulane
Copy link

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"
}
]
`

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

No branches or pull requests

1 participant