hyperledger / cello

Operating System for Enterprise Blockchain
https://wiki.hyperledger.org/display/cello
Apache License 2.0
892 stars 442 forks source link

Error While uploading Chaincode #598

Open Rushi-Kumar opened 7 months ago

Rushi-Kumar commented 7 months ago

Error While uploading chain code package

Expected Behavior

Should Upload the chain code package and appear in the list of chaincodes

Current Behavior

I am not able to upload more than 1MB size, due to the Nginx default client body size, I have changed it and rehosted the docker After which, it is throwing not found issue. I have checked the code, and there is a URL and Payload mismatch Dashboard is calling POST api/v1/chaincode/package the API path in api_engine POST api/v1/chaincodes/chaincodeRepo Dashboard Payload {chaincodeRepo: "file binary ", description:""} Expected Payload {file: "binary", description:""}

After correcting it is still throwing errors.

Screenshot 2024-03-01 at 6 03 24 AM

I am not sending a description at all but still, it is throwing the same error

Possible Solution

Steps to Reproduce

Creating Chain code

xiaor2 commented 5 months ago

609 caused this issue.