Skip to content

Instantly share code, notes, and snippets.

@tranvictor
Created April 24, 2017 16:32
Show Gist options
  • Save tranvictor/a478a9d3d3770739ee274d8d2d5e24f3 to your computer and use it in GitHub Desktop.
Save tranvictor/a478a9d3d3770739ee274d8d2d5e24f3 to your computer and use it in GitHub Desktop.
2017/04/24 23:31:50 http: panic serving [::1]:61681: interface conversion: interface {} is nil, not string
goroutine 50 [running]:
net/http.(*conn).serve.func1(0xc420580140)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:1721 +0xd0
panic(0x44dc7c0, 0xc42040a980)
/usr/local/Cellar/go/1.8/libexec/src/runtime/panic.go:489 +0x2cf
_/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/blockchain.NewEthereumBlockchain(0xc42019ba08)
/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/blockchain/blockchain_ethereum.go:41 +0x474
_/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/blockchain.NewBlockchain(0xc42019ba08, 0x8, 0x0, 0x0)
/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/blockchain/blockchain.go:26 +0x83
main.apiBlockchainConfirmDeposit(0x48ab380, 0xc4201c90a0, 0xc420606600)
/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/server/handler_ezzra.go:321 +0x6b8
net/http.HandlerFunc.ServeHTTP(0x46a00f0, 0x48ab380, 0xc4201c90a0, 0xc420606600)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:1942 +0x44
net/http.(*ServeMux).ServeHTTP(0x48df940, 0x48ab380, 0xc4201c90a0, 0xc420606600)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:2238 +0x130
net/http.serverHandler.ServeHTTP(0xc420094790, 0x48ab380, 0xc4201c90a0, 0xc420606600)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc420580140, 0x48ab9c0, 0xc4201de380)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:2668 +0x2ce
amount: 1
chain: ethereum
2017/04/24 23:31:50 http: panic serving [::1]:61683: interface conversion: interface {} is nil, not string
goroutine 39 [running]:
net/http.(*conn).serve.func1(0xc4204e5360)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:1721 +0xd0
panic(0x44dc7c0, 0xc42040b2c0)
/usr/local/Cellar/go/1.8/libexec/src/runtime/panic.go:489 +0x2cf
_/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/blockchain.NewEthereumBlockchain(0xc42017c4d0)
/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/blockchain/blockchain_ethereum.go:41 +0x474
_/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/blockchain.NewBlockchain(0xc42017c4d0, 0x8, 0x0, 0x0)
/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/blockchain/blockchain.go:26 +0x83
main.apiBlockchainConfirmDeposit(0x48ab380, 0xc4201c9880, 0xc420606700)
/Users/victor/Dropbox/Project/BlockChain/SmartChainLabs/ezzra/server/handler_ezzra.go:321 +0x6b8
net/http.HandlerFunc.ServeHTTP(0x46a00f0, 0x48ab380, 0xc4201c9880, 0xc420606700)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:1942 +0x44
net/http.(*ServeMux).ServeHTTP(0x48df940, 0x48ab380, 0xc4201c9880, 0xc420606700)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:2238 +0x130
net/http.serverHandler.ServeHTTP(0xc420094790, 0x48ab380, 0xc4201c9880, 0xc420606700)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc4204e5360, 0x48ab9c0, 0xc42040ac00)
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/usr/local/Cellar/go/1.8/libexec/src/net/http/server.go:2668 +0x2ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment