Skip to content

Instantly share code, notes, and snippets.

@pcn
Created May 13, 2014 18:51
Show Gist options
  • Select an option

  • Save pcn/a44b7abc8fa4033d3d54 to your computer and use it in GitHub Desktop.

Select an option

Save pcn/a44b7abc8fa4033d3d54 to your computer and use it in GitHub Desktop.
Crash in gonetacts in getting in touch with oauth services
$ ./gonetact --cache=~/.gonetact/cache.json --client-id=~/.gonetact/client.json
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x8 pc=0x451469]
goroutine 1 [running]:
runtime.panic(0x656d40, 0x948ca8)
/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6
code.google.com/p/goauth2/oauth.(*Transport).RoundTrip(0x0, 0xc210040340, 0x1, 0x424b45, 0x60)
/home/spacey/.gopath/src/code.google.com/p/goauth2/oauth/oauth.go:249 +0x29
net/http.send(0xc210040340, 0x7f1921bc35d8, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/pkg/net/http/client.go:168 +0x37f
net/http.(*Client).send(0xc210082930, 0xc210040340, 0x50, 0x422581, 0x8)
/usr/local/go/src/pkg/net/http/client.go:100 +0xd9
net/http.(*Client).doFollowingRedirects(0xc210082930, 0xc210040340, 0x721b50, 0x0, 0x0, ...)
/usr/local/go/src/pkg/net/http/client.go:294 +0x671
net/http.(*Client).Get(0xc210082930, 0xc21005a960, 0x50, 0x7f1921bc35d8, 0x0, ...)
/usr/local/go/src/pkg/net/http/client.go:248 +0xb2
main.print_all_contacts(0x0)
/home/spacey/dvcs/github/gonetact/get_contacts.go:88 +0xe8
main.main()
/home/spacey/dvcs/github/gonetact/gonetact.go:62 +0x3ea
goroutine 3 [syscall]:
runtime.goexit()
/usr/local/go/src/pkg/runtime/proc.c:1394
spacey@veep:~/dvcs/github/gonetact$ go version
go version go1.2.1 linux/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment