hyperledger fabric – go mod fails to find version v0.0.0-00010101000000-000000000000 of a dependency-ThrowExceptions

Exception or error: I’m trying to download all of the dependencies of a project via go mod; the problem occurs when it comes to execute go mod vendor on the CLI. The output is as follows: go: finding github.com/hyperledger/fabric-sdk-go v0.0.0-00010101000000-000000000000 go: github.com/hyperledger/fabric-sdk-go@v0.0.0-00010101000000-000000000000: unknown revision 000000000000 go: error loading module requirements The code that imports the …

My Hyperledger Fabirc won't build with Go due to package issues with Fabric 1.1 vs 1.0-ThrowExceptions

Exception or error: Right now, I’m following this tutorial https://github.com/chainHero/heroes-service After I’ve setup my .go and yaml and toml scripts, I do dep ensure and then go build. I get the error # github.com/chainHero/heroes-service/vendor/github.com/zmap/zlint/lints vendor/github.com/zmap/zlint/lints/result.go:75:9: undefined: strings.ReplaceAll # github.com/chainHero/heroes-service/vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util/csp.go:47:8: cannot convert nil to type csr.KeyRequest vendor/github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/util/csp.go:132:37: cannot use req.KeyRequest (type *csr.KeyRequest) as type csr.KeyRequest …

go – HyperLedger fabric chaincode not updated-ThrowExceptions

Exception or error: I am trying to follow along this sample Hyperledger Fabric code: https://github.com/hyperledger/education/tree/master/LFS171x/fabric-material Initially I replaced chaincode/tuna-app/tuna-chaincode.go with my go file chaincode/tuna-app/test.go. test.go had changes just in what we initialize in the ledger through its initLedger function call. It worked fine, with no changes required in tuna-app/.startFabric.sh. Now when I again try to …

go gin – Go Gin.context not getting/updating values properly-ThrowExceptions

Exception or error: I have the following endpoint for the backend server for an app I’m creating. api := router.Group(“/api”) { api.POST(“/isFollowing”, func(c *gin.Context) { id := c.PostForm(“id”) sessionId := c.PostForm(“session_id”) charityId := c.PostForm(“charity_id”) fmt.Printf(“just received id: %s, session id: %s, charity id: %s”,id, sessionId, charityId) }) } When testing this function in Postman, I …