Skip to content

Instantly share code, notes, and snippets.

@matiasinsaurralde
Created June 14, 2019 15:11
Show Gist options
  • Save matiasinsaurralde/d5a163e36da06c208b6a47db02ebbb12 to your computer and use it in GitHub Desktop.
Save matiasinsaurralde/d5a163e36da06c208b6a47db02ebbb12 to your computer and use it in GitHub Desktop.
log.txt
=== RUN TestGetPaginatedClientTokens/Get_list_of_tokens_without_page_query
time="Jun 14 15:07:43" level=info msg="Getting client tokens sorted list:oauth-client-tokens.023b7052-cea4-411d-8003-595805c1a9d9"
=== RUN TestGetPaginatedClientTokens/Get_list_of_tokens_with_a_page_query_param_lesser_than_0
time="Jun 14 15:07:43" level=info msg="Getting client tokens sorted list:oauth-client-tokens.023b7052-cea4-411d-8003-595805c1a9d9"
2019/06/14 15:07:43 http: panic serving 127.0.0.1:53828: runtime error: slice bounds out of range
goroutine 67500 [running]:
net/http.(*conn).serve.func1(0xc000a7e320)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1746 +0x17c
panic(0x15d66e0, 0x270b410)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/runtime/panic.go:513 +0x1b9
github.com/TykTechnologies/tyk/gateway.(*RedisOsinStorageInterface).GetPaginatedClientTokens(0xc001361700, 0xc0011f981e, 0x24, 0x1, 0x0, 0x15ca960, 0x17ddce8, 0xc000f63b50, 0xb517e1, 0xc000bdd298)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/oauth_manager.go:594 +0x823
github.com/TykTechnologies/tyk/gateway.oAuthClientTokensHandler(0x1bfc9a0, 0xc0003d6d20, 0xc0007a8000)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/api.go:1680 +0x263
net/http.HandlerFunc.ServeHTTP(0x17da5e0, 0x1bfc9a0, 0xc0003d6d20, 0xc0007a8000)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc002465860, 0x1bfc9a0, 0xc0003d6d20, 0xc0007a8000)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux/mux.go:150 +0x17f
github.com/TykTechnologies/tyk/gateway.InstrumentationMW.func1(0x1bfc9a0, 0xc0003d6d20, 0xc002383e00)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/instrumentation_handlers.go:57 +0xdc
net/http.HandlerFunc.ServeHTTP(0xc001363040, 0x1bfc9a0, 0xc0003d6d20, 0xc002383e00)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/gateway.controlAPICheckClientCertificate.func1(0x1bfc9a0, 0xc0003d6d20, 0xc002383e00)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/server.go:355 +0xe7
net/http.HandlerFunc.ServeHTTP(0xc001363060, 0x1bfc9a0, 0xc0003d6d20, 0xc002383e00)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/gateway.checkIsAPIOwner.func1(0x1bfc9a0, 0xc0003d6d20, 0xc002383e00)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/server.go:433 +0x218
net/http.HandlerFunc.ServeHTTP(0xc00322e480, 0x1bfc9a0, 0xc0003d6d20, 0xc002383e00)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/gateway.stripSlashes.func1(0x1bfc9a0, 0xc0003d6d20, 0xc002383e00)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/server.go:341 +0x1fc
net/http.HandlerFunc.ServeHTTP(0xc001363080, 0x1bfc9a0, 0xc0003d6d20, 0xc002383e00)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
net/http.StripPrefix.func1(0x1bfc9a0, 0xc0003d6d20, 0xc002383d00)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:2003 +0x35c
net/http.HandlerFunc.ServeHTTP(0xc00322e4b0, 0x1bfc9a0, 0xc0003d6d20, 0xc002383d00)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc002465800, 0x1bfc9a0, 0xc0003d6d20, 0xc002383d00)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux/mux.go:150 +0x17f
github.com/TykTechnologies/tyk/gateway.mainHandler.ServeHTTP(0x1bfc9a0, 0xc0003d6d20, 0xc002383b00)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/server.go:1246 +0xd7
net/http.serverHandler.ServeHTTP(0xc001e4ef70, 0x1bfc9a0, 0xc0003d6d20, 0xc002383b00)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:2741 +0xc5
net/http.(*conn).serve(0xc000a7e320, 0x1bfde20, 0xc0007bba40)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1847 +0x80b
created by net/http.(*Server).Serve
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:2851 +0x4c6
time="Jun 14 15:07:43" level=info msg="Getting client tokens sorted list:oauth-client-tokens.023b7052-cea4-411d-8003-595805c1a9d9"
2019/06/14 15:07:43 http: panic serving 127.0.0.1:53830: runtime error: slice bounds out of range
goroutine 93246 [running]:
net/http.(*conn).serve.func1(0xc0013a0b40)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1746 +0x17c
panic(0x15d66e0, 0x270b410)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/runtime/panic.go:513 +0x1b9
github.com/TykTechnologies/tyk/gateway.(*RedisOsinStorageInterface).GetPaginatedClientTokens(0xc001361700, 0xc0011f9d5e, 0x24, 0x1, 0x0, 0x15ca960, 0x17ddce8, 0xc002d2fb50, 0xb517e1, 0xc000bdd5f8)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/oauth_manager.go:594 +0x823
github.com/TykTechnologies/tyk/gateway.oAuthClientTokensHandler(0x1bfc9a0, 0xc0003d7260, 0xc0007a8600)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/api.go:1680 +0x263
net/http.HandlerFunc.ServeHTTP(0x17da5e0, 0x1bfc9a0, 0xc0003d7260, 0xc0007a8600)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc002465860, 0x1bfc9a0, 0xc0003d7260, 0xc0007a8600)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux/mux.go:150 +0x17f
github.com/TykTechnologies/tyk/gateway.InstrumentationMW.func1(0x1bfc9a0, 0xc0003d7260, 0xc0007a8400)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/instrumentation_handlers.go:57 +0xdc
net/http.HandlerFunc.ServeHTTP(0xc001363040, 0x1bfc9a0, 0xc0003d7260, 0xc0007a8400)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/gateway.controlAPICheckClientCertificate.func1(0x1bfc9a0, 0xc0003d7260, 0xc0007a8400)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/server.go:355 +0xe7
net/http.HandlerFunc.ServeHTTP(0xc001363060, 0x1bfc9a0, 0xc0003d7260, 0xc0007a8400)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/gateway.checkIsAPIOwner.func1(0x1bfc9a0, 0xc0003d7260, 0xc0007a8400)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/server.go:433 +0x218
net/http.HandlerFunc.ServeHTTP(0xc00322e480, 0x1bfc9a0, 0xc0003d7260, 0xc0007a8400)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/gateway.stripSlashes.func1(0x1bfc9a0, 0xc0003d7260, 0xc0007a8400)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/server.go:341 +0x1fc
net/http.HandlerFunc.ServeHTTP(0xc001363080, 0x1bfc9a0, 0xc0003d7260, 0xc0007a8400)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
net/http.StripPrefix.func1(0x1bfc9a0, 0xc0003d7260, 0xc0007a8300)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:2003 +0x35c
net/http.HandlerFunc.ServeHTTP(0xc00322e4b0, 0x1bfc9a0, 0xc0003d7260, 0xc0007a8300)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1964 +0x52
github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc002465800, 0x1bfc9a0, 0xc0003d7260, 0xc0007a8300)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux/mux.go:150 +0x17f
github.com/TykTechnologies/tyk/gateway.mainHandler.ServeHTTP(0x1bfc9a0, 0xc0003d7260, 0xc0007a8100)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/server.go:1246 +0xd7
net/http.serverHandler.ServeHTTP(0xc001e4ef70, 0x1bfc9a0, 0xc0003d7260, 0xc0007a8100)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:2741 +0xc5
net/http.(*conn).serve(0xc0013a0b40, 0x1bfde20, 0xc0012d0000)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:1847 +0x80b
created by net/http.(*Server).Serve
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/net/http/server.go:2851 +0x4c6
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x14448ce]
goroutine 93162 [running]:
testing.tRunner.func1(0xc0007a6000)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/testing/testing.go:792 +0x6a7
panic(0x15d66e0, 0x270b3c0)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/runtime/panic.go:513 +0x1b9
github.com/TykTechnologies/tyk/gateway.TestGetPaginatedClientTokens.func3(0xc0007a6000)
/home/travis/gopath/src/github.com/TykTechnologies/tyk/gateway/oauth_manager_test.go:664 +0x2fe
testing.tRunner(0xc0007a6000, 0xc0017ef740)
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/testing/testing.go:827 +0x163
created by testing.(*T).Run
/home/travis/.gimme/versions/go1.11.11.linux.amd64/src/testing/testing.go:878 +0x65a
FAIL github.com/TykTechnologies/tyk/gateway 111.613s
? github.com/TykTechnologies/tyk/goplugin [no test files]
? github.com/TykTechnologies/tyk/log [no test files]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment