Fabric-SDK -Golang -API error #fabric-questions


jeff.jo95z@...
 

I was trying to implement Fabric SDK-Golang. I was trying to submit the transactions using api
I got the below error:


2022/02/25 19:53:15 ============ application-golang starts ============
 
Submit Transaction: createBankTrxns  
reqBody: "{\"transactionId\":\"TXN00000003\",\"country\":\"Indonesia\",\"currency\":\"Rupiah\",\"amount\":\"200000\", \"origin\":\"US\",\"date\":
\"29-09-2021\"}"
 
 
 
2022/02/25 19:53:19 http: panic serving [::1]:36944: failed to submit transaction: rpc error: code = Canceled desc = context canceled
 
goroutine 8 [running]:
 
net/http.(*conn).serve.func1(0xc00044c280)
 
        /usr/local/go/src/net/http/server.go:1824 +0x153
 
panic(0x981940, 0xc000077160)
 
        /usr/local/go/src/runtime/panic.go:971 +0x499
 
main.createBankTrxns(0xc000079300, 0xc000030000, 0x99)
 
        /home/jeffin/BankConsortiumHLF-main/application-gateway-go/assetTransfer.go:85 +0x44c
 
main.createBankTrxnsCall(0xae4b40, 0xc0004580e0, 0xc00038e400)
 
        /home/jeffin/BankConsortiumHLF-main/application-gateway-go/assetTransfer.go:60 +0xbc
 
net/http.HandlerFunc.ServeHTTP(0xa5fc90, 0xae4b40, 0xc0004580e0, 0xc00038e400)
 
        /usr/local/go/src/net/http/server.go:2069 +0x44
 
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0000e8480, 0xae4b40, 0xc0004580e0, 0xc00038e200)
 
        /home/jeffin/go/pkg/mod/github.com/gorilla/mux@....0/mux.go:210 +0xd3
 
net/http.serverHandler.ServeHTTP(0xc000458000, 0xae4b40, 0xc0004580e0, 0xc00038e200)
 
        /usr/local/go/src/net/http/server.go:2887 +0xa3
 
net/http.(*conn).serve(0xc00044c280, 0xae5480, 0xc000078800)
 
        /usr/local/go/src/net/http/server.go:1952 +0x8cd
 
created by net/http.(*Server).Serve
 
        /usr/local/go/src/net/http/server.go:3013 +0x39b


SDK file is attached along with this for reference

Join fabric@lists.hyperledger.org to automatically receive all group messages.