Skip to content

Instantly share code, notes, and snippets.

@djberg96
Created May 17, 2021 21:11
Show Gist options
  • Save djberg96/afeb4dea093dd9e5810362028892ae13 to your computer and use it in GitHub Desktop.
Save djberg96/afeb4dea093dd9e5810362028892ae13 to your computer and use it in GitHub Desktop.
17911 logger.go:71] [opid=1sgEMWI9smSmasMiuGGprorF33B] {"request_method":"PATCH","request_url":"/api/status-board/v1/peer_dependencies/ac031952-8fa2-422a-82ce-a776821c697c","request_header":{"Accept":["application/json"],"Content-Length":["55"],"Content-Type":["application/json"]},"request_body":{"Reader":{},"Closer":{}},"request_remote_ip":"127.0.0.1:59041"}
2021/05/17 17:09:44 http: panic serving 127.0.0.1:59041: uuid: Parse(zzzz): invalid UUID length: 4
goroutine 16 [running]:
net/http.(*conn).serve.func1(0xc0002df9a0)
/usr/local/opt/go/libexec/src/net/http/server.go:1824 +0x153
panic(0x1aba6a0, 0xc0002e0060)
/usr/local/opt/go/libexec/src/runtime/panic.go:971 +0x499
github.com/getsentry/sentry-go/http.(*Handler).recoverWithSentry(0xc000318190, 0xc0007defc0, 0xc000422d00)
/Users/dberger/golang/pkg/mod/github.com/getsentry/[email protected]/http/sentryhttp.go:117 +0x14e
panic(0x1aba6a0, 0xc0002e0060)
/usr/local/opt/go/libexec/src/runtime/panic.go:965 +0x1b9
github.com/google/uuid.MustParse(0xc0007f83e0, 0x4, 0x0, 0x0)
/Users/dberger/golang/pkg/mod/github.com/google/[email protected]/uuid.go:148 +0x125
gitlab.cee.redhat.com/service/status-board/pkg/handlers.peerDependencyHandler.Patch.func1(0xc00051a200, 0x37, 0x200)
/Users/dberger/Dev/status-board/pkg/handlers/peer_dependency.go:160 +0x265
gitlab.cee.redhat.com/service/status-board/pkg/handlers.handle(0x1dacbd0, 0xc0007e04e0, 0xc000422e00, 0xc0003633c0, 0xca)
/Users/dberger/Dev/status-board/pkg/handlers/framework.go:69 +0x3a8
gitlab.cee.redhat.com/service/status-board/pkg/handlers.peerDependencyHandler.Patch(0x1db67c8, 0xc0001b6ab8, 0x1dacbd0, 0xc0007e04e0, 0xc000422e00)
/Users/dberger/Dev/status-board/pkg/handlers/peer_dependency.go:174 +0x113
net/http.HandlerFunc.ServeHTTP(0xc0007e0168, 0x1dacbd0, 0xc0007e04e0, 0xc000422e00)
/usr/local/opt/go/libexec/src/net/http/server.go:2069 +0x44
gitlab.cee.redhat.com/service/status-board/pkg/auth.(*AuthMiddlewareMock).AuthenticateAccountJWT.func1(0x1dacbd0, 0xc0007e04e0, 0xc000422e00)
/Users/dberger/Dev/status-board/pkg/auth/auth_middleware_mock.go:14 +0x4d
net/http.HandlerFunc.ServeHTTP(0xc0007e0288, 0x1dacbd0, 0xc0007e04e0, 0xc000422e00)
/usr/local/opt/go/libexec/src/net/http/server.go:2069 +0x44
github.com/gorilla/handlers.CompressHandlerLevel.func1(0x1dacbd0, 0xc0007e04e0, 0xc000422e00)
/Users/dberger/golang/pkg/mod/github.com/gorilla/[email protected]/compress.go:100 +0x8eb
net/http.HandlerFunc.ServeHTTP(0xc0004de640, 0x1dacbd0, 0xc0007e04e0, 0xc000422e00)
/usr/local/opt/go/libexec/src/net/http/server.go:2069 +0x44
gitlab.cee.redhat.com/service/status-board/pkg/server.MetricsMiddleware.func1(0x1dacc00, 0xc0002ce5f0, 0xc000422e00)
/Users/dberger/Dev/status-board/pkg/server/metrics_middleware.go:73 +0xe7
net/http.HandlerFunc.ServeHTTP(0xc0007e02a0, 0x1dacc00, 0xc0002ce5f0, 0xc000422e00)
/usr/local/opt/go/libexec/src/net/http/server.go:2069 +0x44
gitlab.cee.redhat.com/service/status-board/pkg/server/logging.RequestLoggingMiddleware.func1(0x1dad0e0, 0xc00041e2a0, 0xc000422e00)
/Users/dberger/Dev/status-board/pkg/server/logging/request_logging_middleware.go:27 +0x16c
net/http.HandlerFunc.ServeHTTP(0xc0007e02b8, 0x1dad0e0, 0xc00041e2a0, 0xc000422e00)
/usr/local/opt/go/libexec/src/net/http/server.go:2069 +0x44
gitlab.cee.redhat.com/service/status-board/pkg/logger.OperationIDMiddleware.func1(0x1dad0e0, 0xc00041e2a0, 0xc000422d00)
/Users/dberger/Dev/status-board/pkg/logger/operationid_middleware.go:33 +0x20c
net/http.HandlerFunc.ServeHTTP(0xc0007e02d0, 0x1dad0e0, 0xc00041e2a0, 0xc000422d00)
/usr/local/opt/go/libexec/src/net/http/server.go:2069 +0x44
github.com/getsentry/sentry-go/http.(*Handler).handle.func1(0x1dad0e0, 0xc00041e2a0, 0xc000422c00)
/Users/dberger/golang/pkg/mod/github.com/getsentry/[email protected]/http/sentryhttp.go:103 +0x402
net/http.HandlerFunc.ServeHTTP(0xc0004de680, 0x1dad0e0, 0xc00041e2a0, 0xc000422c00)
/usr/local/opt/go/libexec/src/net/http/server.go:2069 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc000294000, 0x1dad0e0, 0xc00041e2a0, 0xc000422100)
/Users/dberger/golang/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0xd3
github.com/gorilla/handlers.(*cors).ServeHTTP(0xc0000eb440, 0x1dad0e0, 0xc00041e2a0, 0xc000422100)
/Users/dberger/golang/pkg/mod/github.com/gorilla/[email protected]/cors.go:54 +0x103e
gitlab.cee.redhat.com/service/status-board/pkg/server.removeTrailingSlash.func1(0x1dad0e0, 0xc00041e2a0, 0xc000422100)
/Users/dberger/Dev/status-board/pkg/server/server.go:25 +0x91
net/http.HandlerFunc.ServeHTTP(0xc0007e0228, 0x1dad0e0, 0xc00041e2a0, 0xc000422100)
/usr/local/opt/go/libexec/src/net/http/server.go:2069 +0x44
net/http.serverHandler.ServeHTTP(0xc00041e1c0, 0x1dad0e0, 0xc00041e2a0, 0xc000422100)
/usr/local/opt/go/libexec/src/net/http/server.go:2887 +0xa3
net/http.(*conn).serve(0xc0002df9a0, 0x1db0658, 0xc000363100)
/usr/local/opt/go/libexec/src/net/http/server.go:1952 +0x8cd
created by net/http.(*Server).Serve
/usr/local/opt/go/libexec/src/net/http/server.go:3013 +0x39b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment