Fabric-SDK -Golang error #fabric-questions


I was trying to implement fabric SDK-Golang. Only a single organization is there in the network
While submitting the transaction got this error:

Submit Transaction: createCar  
panic: failed to submit transaction: rpc error: code = Aborted desc = failed to endorse transaction, see attached details for more info
goroutine 1 [running]:
        /home/jeffin/FabricNetwork-2.x-singleOrg/application-gateway-go/assetTransfer.go:80 +0x23a
        /home/jeffin/FabricNetwork-2.x-singleOrg/application-gateway-go/assetTransfer.go:67 +0x377
exit status 2

Attaching the sdk file for the reference

Andrew Coleman

The 'Details' field within the error will give you a clue as to why it failed to endorse.  Take a look at this sample code for how to extract the details.