fabric-samples icon indicating copy to clipboard operation
fabric-samples copied to clipboard

the laster version run application-go/assetTransfer.go error

Open larryhq opened this issue 1 year ago • 1 comments

I download the main branch code to localhost, when I run fabric-samples/asset-transfer-basic/application-go/assetTransfer.go traceback error [fabsdk/util] 2023/07/27 07:58:28 UTC - lazyref.(*Reference).refreshValue -> WARN Error - initializer returned error: load MSPs from config failed: configure MSP failed: sanitizeCert failed the supplied identity is not valid: x509: certificate signed by unknown authority. Will retry again later 2023/07/27 15:58:28 Failed to Submit transaction: Failed to submit: Discovery status Code: (11) UNKNOWN. Description: error getting endorsers: no endorsement combination can be satisfied exit status 1 my golang version is go1.20.6 run pass through gateway is ok! why this? Is this code BUG?

larryhq avatar Jul 27 '23 08:07 larryhq

my fabric-ca version 1.5.6 fabric-linux version 2.5.3

larryhq avatar Jul 27 '23 08:07 larryhq

The legacy Go SDK is no longer supported and the accompanying sample client application has been replaced by one using the Fabric Gateway client API, which is the recommended and only supported client API for Fabric v2.5. Since this issue relates to the legacy SDK and won't be addressed, I am going to close it.

bestbeforetoday avatar Jul 03 '24 21:07 bestbeforetoday