Skip to content

Instantly share code, notes, and snippets.

@kishansagathiya
Created November 29, 2017 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kishansagathiya/b862d6c2db9c02a2601d2963371ed1ac to your computer and use it in GitHub Desktop.
Save kishansagathiya/b862d6c2db9c02a2601d2963371ed1ac to your computer and use it in GitHub Desktop.
15:50:21 app | time="2017-11-28 15:50:21" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-6
15:50:21 app | time="2017-11-28 15:50:21" level=info msg="request headers" Accept=[*/*] Content-Length=[284] Content-Type=[application/json] User-Agent=[curl/7.51.0] pkg=log.LogRequest.func1 req_id=8xORjvjQDW-6
15:50:21 app | time="2017-11-28 15:50:21" level=info msg=payload pkg=log.LogRequest.func1 raw="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"uss.xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://quora.com\"}" req_id=8xORjvjQDW-6
15:50:21 app | time="2017-11-28 15:50:21" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-6
15:50:21 app | time="2017-11-28 15:50:21" level=info msg="request headers" Accept=[*/*] Content-Length=[284] Content-Type=[application/json] User-Agent=[curl/7.51.0] pkg=log.LogRequest.func1 req_id=8xORjvjQDW-6
15:50:21 app | time="2017-11-28 15:50:21" level=info msg=payload pkg=log.LogRequest.func1 raw="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"uss.xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://quora.com\"}" req_id=8xORjvjQDW-6
15:50:22 app | time="2017-11-28 15:50:22" level=error msg="keycloak exchange operation failed" code=0xc4202d4ef0 err="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" file="/home/ksagathi/golang/auth/src/github.com/fabric8-services/fabric8-auth/controller/token.go" func="github.com/fabric8-services/fabric8-auth/controller.(*TokenController).Exchange" line=423 pid=27304 pkg=controller req_headers=map[User-Agent:[curl/7.51.0] Accept:[*/*] Content-Type:[application/json] Content-Length:[284]] req_id=8xORjvjQDW-6 req_payload="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"uss.xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://quora.com\"}"
15:50:22 app | time="2017-11-28 15:50:22" level=info msg="an error occurred in our api" err="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" error_message="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" pkg=jsonapi req_id=8xORjvjQDW-6
15:50:22 app | time="2017-11-28 15:50:22" level=info msg=completed action=Exchange bytes=216 ctrl=token duration=294.230413 duration_unit=ms pkg=log.LogRequest.func1 req_id=8xORjvjQDW-6 status=500
15:50:22 app | time="2017-11-28 15:50:22" level=info msg=completed action=Exchange bytes=216 ctrl=token duration=294.90362799999997 duration_unit=ms pkg=log.LogRequest.func1 req_id=8xORjvjQDW-6 status=500
^[[B15:52:38 app | time="2017-11-28 15:52:38" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-7
15:52:38 app | time="2017-11-28 15:52:38" level=info msg="request headers" Accept=[*/*] Content-Length=[303] Content-Type=[application/json] User-Agent=[curl/7.51.0] pkg=log.LogRequest.func1 req_id=8xORjvjQDW-7
15:52:38 app | time="2017-11-28 15:52:38" level=info msg=payload pkg=log.LogRequest.func1 raw="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"uss.xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://localhost:8089/api/authorize\"}" req_id=8xORjvjQDW-7
15:52:38 app | time="2017-11-28 15:52:38" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-7
15:52:38 app | time="2017-11-28 15:52:38" level=info msg="request headers" Accept=[*/*] Content-Length=[303] Content-Type=[application/json] User-Agent=[curl/7.51.0] pkg=log.LogRequest.func1 req_id=8xORjvjQDW-7
15:52:38 app | time="2017-11-28 15:52:38" level=info msg=payload pkg=log.LogRequest.func1 raw="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"uss.xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://localhost:8089/api/authorize\"}" req_id=8xORjvjQDW-7
15:52:40 app | time="2017-11-28 15:52:40" level=error msg="keycloak exchange operation failed" code=0xc4200100b0 err="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" file="/home/ksagathi/golang/auth/src/github.com/fabric8-services/fabric8-auth/controller/token.go" func="github.com/fabric8-services/fabric8-auth/controller.(*TokenController).Exchange" line=423 pid=27304 pkg=controller req_headers=map[User-Agent:[curl/7.51.0] Accept:[*/*] Content-Type:[application/json] Content-Length:[303]] req_id=8xORjvjQDW-7 req_payload="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"uss.xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://localhost:8089/api/authorize\"}"
15:52:40 app | time="2017-11-28 15:52:40" level=info msg="an error occurred in our api" err="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" error_message="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" pkg=jsonapi req_id=8xORjvjQDW-7
15:52:40 app | time="2017-11-28 15:52:40" level=info msg=completed action=Exchange bytes=216 ctrl=token duration=1395.322725 duration_unit=ms pkg=log.LogRequest.func1 req_id=8xORjvjQDW-7 status=500
15:52:40 app | time="2017-11-28 15:52:40" level=info msg=completed action=Exchange bytes=216 ctrl=token duration=1395.85624 duration_unit=ms pkg=log.LogRequest.func1 req_id=8xORjvjQDW-7 status=500
15:52:55 app | time="2017-11-28 15:52:55" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-8
15:52:55 app | time="2017-11-28 15:52:55" level=info msg="request headers" Accept=[*/*] Content-Length=[299] Content-Type=[application/json] User-Agent=[curl/7.51.0] pkg=log.LogRequest.func1 req_id=8xORjvjQDW-8
15:52:55 app | time="2017-11-28 15:52:55" level=info msg=payload pkg=log.LogRequest.func1 raw="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://localhost:8089/api/authorize\"}" req_id=8xORjvjQDW-8
15:52:55 app | time="2017-11-28 15:52:55" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-8
15:52:55 app | time="2017-11-28 15:52:55" level=info msg="request headers" Accept=[*/*] Content-Length=[299] Content-Type=[application/json] User-Agent=[curl/7.51.0] pkg=log.LogRequest.func1 req_id=8xORjvjQDW-8
15:52:55 app | time="2017-11-28 15:52:55" level=info msg=payload pkg=log.LogRequest.func1 raw="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://localhost:8089/api/authorize\"}" req_id=8xORjvjQDW-8
15:52:55 app | time="2017-11-28 15:52:55" level=error msg="keycloak exchange operation failed" code=0xc4200100b0 err="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" file="/home/ksagathi/golang/auth/src/github.com/fabric8-services/fabric8-auth/controller/token.go" func="github.com/fabric8-services/fabric8-auth/controller.(*TokenController).Exchange" line=423 pid=27304 pkg=controller req_headers=map[User-Agent:[curl/7.51.0] Accept:[*/*] Content-Type:[application/json] Content-Length:[299]] req_id=8xORjvjQDW-8 req_payload="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://localhost:8089/api/authorize\"}"
15:52:55 app | time="2017-11-28 15:52:55" level=info msg="an error occurred in our api" err="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" error_message="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" pkg=jsonapi req_id=8xORjvjQDW-8
15:52:55 app | time="2017-11-28 15:52:55" level=info msg=completed action=Exchange bytes=216 ctrl=token duration=286.21457300000003 duration_unit=ms pkg=log.LogRequest.func1 req_id=8xORjvjQDW-8 status=500
15:52:55 app | time="2017-11-28 15:52:55" level=info msg=completed action=Exchange bytes=216 ctrl=token duration=286.790703 duration_unit=ms pkg=log.LogRequest.func1 req_id=8xORjvjQDW-8 status=500
15:53:18 app | time="2017-11-28 15:53:18" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-9
15:53:18 app | time="2017-11-28 15:53:18" level=info msg="request headers" Accept=[*/*] Content-Length=[255] Content-Type=[application/json] User-Agent=[curl/7.51.0] pkg=log.LogRequest.func1 req_id=8xORjvjQDW-9
15:53:18 app | time="2017-11-28 15:53:18" level=info msg=payload pkg=log.LogRequest.func1 raw="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://localhost:8089/api/authorize\"}" req_id=8xORjvjQDW-9
15:53:18 app | time="2017-11-28 15:53:18" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-9
15:53:18 app | time="2017-11-28 15:53:18" level=info msg="request headers" Accept=[*/*] Content-Length=[255] Content-Type=[application/json] User-Agent=[curl/7.51.0] pkg=log.LogRequest.func1 req_id=8xORjvjQDW-9
15:53:18 app | time="2017-11-28 15:53:18" level=info msg=payload pkg=log.LogRequest.func1 raw="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://localhost:8089/api/authorize\"}" req_id=8xORjvjQDW-9
15:53:18 app | time="2017-11-28 15:53:18" level=error msg="keycloak exchange operation failed" code=0xc420011360 err="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" file="/home/ksagathi/golang/auth/src/github.com/fabric8-services/fabric8-auth/controller/token.go" func="github.com/fabric8-services/fabric8-auth/controller.(*TokenController).Exchange" line=423 pid=27304 pkg=controller req_headers=map[Accept:[*/*] Content-Type:[application/json] Content-Length:[255] User-Agent:[curl/7.51.0]] req_id=8xORjvjQDW-9 req_payload="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://localhost:8089/api/authorize\"}"
15:53:18 app | time="2017-11-28 15:53:18" level=info msg="an error occurred in our api" err="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" error_message="oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}" pkg=jsonapi req_id=8xORjvjQDW-9
15:53:18 app | time="2017-11-28 15:53:18" level=info msg=completed action=Exchange bytes=216 ctrl=token duration=301.287371 duration_unit=ms pkg=log.LogRequest.func1 req_id=8xORjvjQDW-9 status=500
15:53:18 app | time="2017-11-28 15:53:18" level=info msg=completed action=Exchange bytes=216 ctrl=token duration=301.646213 duration_unit=ms pkg=log.LogRequest.func1 req_id=8xORjvjQDW-9 status=500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment