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
Hi,
I am calling fabric-smaples/asset-transfer-basic/chaincode-go using a UI.....
I have tested the calling of chaincode using both postman and commandline and is working all good for me.
I have followed the same steps for GetAllAssets function, and it worked without any error.... But Here it is giving me Error I don't know why..
Please help in this regard...
Thank You
The text was updated successfully, but these errors were encountered:
Hi,
I am calling fabric-smaples/asset-transfer-basic/chaincode-go using a UI.....
I have tested the calling of chaincode using both postman and commandline and is working all good for me.
REPO LINK(UI):: https://github.com/PsychoPunkSage/Vivenns/tree/Hyperledger/5_ui_restapi
Command::
curl --request POST \ --url http://localhost:3000/invoke \ --header 'content-type: application/x-www-form-urlencoded' \ --data = \ --data channelid=mychannel \ --data chaincodeid=basic \ --data function=createAsset \ --data args=Asset123 \ --data args=yellow \ --data args=54 \ --data args=Tom \ --data args=13005
NOW THE ISSUE.....
I have made a very simple UI to call CreateAsset function and wrote a simple JS code to fetch it.....
JS Code::
Error I'm getting
I have made some changes in fabric-smaples/asset-transfer-basic/rest-api-go/web/invoke.go to avoid CORS
I have followed the same steps for GetAllAssets function, and it worked without any error.... But Here it is giving me Error I don't know why..
Please help in this regard...
Thank You
The text was updated successfully, but these errors were encountered: