# Run the steps on https://github.com/google/exposure-notifications-server/blob/master/CONTRIBUTING.md#running-locally
# In another pane
$ go run tools/exposure-client/main.go --regions=US --app=com.example.ios.app
{"severity":"info","ts":1589421052.7978437,"logger":"default","caller":"dbapiconfig/apiconfig.go:113","message":"loaded new APIConfig values"}
2020/05/14 01:50:52 http: panic serving [::1]:55936: runtime error: invalid memory address or nil pointer dereference
goroutine 81 [running]:
net/http.(*conn).serve.func1(0xc0005a3ae0)
/usr/lib/google-golang/src/net/http/server.go:1772 +0x139
panic(0xd43580, 0x15cb260)
/usr/lib/google-golang/src/runtime/panic.go:975 +0x3e3
crypto/ecdsa.boringPrivateKey(0x0, 0xf68418, 0x7ff232465c28, 0x0)
/usr/lib/google-golang/src/crypto/ecdsa/boring.go:59 +0x37
crypto/ecdsa.Sign(0xf837c0, 0xf68418, 0x0, 0xc000362280, 0x20, 0x20, 0x20, 0xc0005180c0, 0x55, 0x55)
/usr/lib/google-golang/src/crypto/ecdsa/ecdsa.go:196 +0x8de
github.com/dgrijalva/jwt-go.(*SigningMethodECDSA).Sign(0xc00019adb0, 0xc0005180c0, 0x55, 0xdd0400, 0x0, 0x80f15b7a, 0x731f559f7f33099a, 0xc0001be5a0, 0x7300000000e1efa0)
/usr/local/google/home/kgood/go/pkg/mod/github.com/dgrijalva/[email protected]+incompatible/ecdsa.go:119 +0x1c9
github.com/dgrijalva/jwt-go.(*Token).SignedString(0xc0001456a8, 0xdd0400, 0x0, 0x3, 0xc0001be648, 0x0, 0x1b)
/usr/local/google/home/kgood/go/pkg/mod/github.com/dgrijalva/[email protected]+incompatible/token.go:55 +0x8d
github.com/google/exposure-notifications-server/internal/ios.newSignedJWT(0x0, 0x0, 0x0, 0x0, 0x0, 0x203000, 0x203000, 0x203000, 0xc000145778)
/usr/local/google/home/kgood/exposure-notifications/internal/ios/devicecheck.go:125 +0x41c
github.com/google/exposure-notifications-server/internal/ios.ValidateDeviceToken(0xf9a9e0, 0xc000368f00, 0xc0002edf40, 0x11, 0xc0005b81e0, 0x0, 0x0)
/usr/local/google/home/kgood/exposure-notifications/internal/ios/devicecheck.go:52 +0x85
github.com/google/exposure-notifications-server/internal/verification.VerifyDeviceCheck(0xf9a9e0, 0xc000368f00, 0xc000344480, 0xc0003fad20, 0x13, 0xc000344480)
/usr/local/google/home/kgood/exposure-notifications/internal/verification/verify.go:93 +0x149
github.com/google/exposure-notifications-server/internal/api/publish.(*publishHandler).ServeHTTP(0xc0005ee180, 0xf95360, 0xc000511a40, 0xc0005ec000)
/usr/local/google/home/kgood/exposure-notifications/internal/api/publish/publish.go:114 +0xb56
github.com/google/exposure-notifications-server/internal/api/handlers.WithMinimumLatency.func1(0xf95360, 0xc000511a40, 0xc0005ec000)
/usr/local/google/home/kgood/exposure-notifications/internal/api/handlers/delay.go:29 +0xc0
net/http.HandlerFunc.ServeHTTP(0xc000688220, 0xf95360, 0xc000511a40, 0xc0005ec000)
/usr/lib/google-golang/src/net/http/server.go:2012 +0x44
net/http.(*ServeMux).ServeHTTP(0x15e5180, 0xf95360, 0xc000511a40, 0xc0005ec000)
/usr/lib/google-golang/src/net/http/server.go:2387 +0x1a5
net/http.serverHandler.ServeHTTP(0xc000416380, 0xf95360, 0xc000511a40, 0xc0005ec000)
/usr/lib/google-golang/src/net/http/server.go:2812 +0xa3
net/http.(*conn).serve(0xc0005a3ae0, 0xf9a9e0, 0xc000368dc0)
/usr/lib/google-golang/src/net/http/server.go:1895 +0x86c
created by net/http.(*Server).Serve
/usr/lib/google-golang/src/net/http/server.go:2938 +0x35c