Skip to content

Instantly share code, notes, and snippets.

@kumar303
Created February 3, 2015 19:48
Show Gist options
  • Save kumar303/0d9204cbe3326afc4a7c to your computer and use it in GitHub Desktop.
Save kumar303/0d9204cbe3326afc4a7c to your computer and use it in GitHub Desktop.
11:47:1422992837 w.auth:INFO fetching FxA token from auth_response: "http://fireplace.loc/mozpay/spa/fxa-auth?state=d56038033e894fe289d6f75f9fc668be&code=4d9287d3798ed74a965505ee7d2d62c740bf4426ffbf862dcd03f20ffa4dbe6f" :/Users/kumar/dev/webpay/webpay/auth/views.py:175
11:47:1422992837 requests_oauthlib.oauth2_session:DEBUG Requesting url https://oauth-latest.dev.lcip.org/v1/token using method POST. :/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/requests_oauthlib/oauth2_session.py:273
11:47:1422992837 requests_oauthlib.oauth2_session:DEBUG Supplying headers {u'Accept': u'application/json'} and data {u'code': u'4d9287d3798ed74a965505ee7d2d62c740bf4426ffbf862dcd03f20ffa4dbe6f', u'client_secret': u'8eb806fd56338aa604117a3ee8ebe3337c8f2cf69511df52214f08383f70cc5c', u'grant_type': u'authorization_code', u'client_id': u'1947ea4dfba1911d'} :/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/requests_oauthlib/oauth2_session.py:274
11:47:1422992837 requests_oauthlib.oauth2_session:DEBUG Passing through key word arguments {'verify': True, 'auth': None}. :/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/requests_oauthlib/oauth2_session.py:275
11:47:1422992837 requests.packages.urllib3.connectionpool:INFO Starting new HTTPS connection (1): oauth-latest.dev.lcip.org :/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:695
11:47:1422992837 requests_oauthlib.oauth2_session:DEBUG Prepared fetch token request body grant_type=authorization_code&code=4d9287d3798ed74a965505ee7d2d62c740bf4426ffbf862dcd03f20ffa4dbe6f&client_id=1947ea4dfba1911d&client_secret=8eb806fd56338aa604117a3ee8ebe3337c8f2cf69511df52214f08383f70cc5c :/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/requests_oauthlib/oauth2_session.py:160
11:47:1422992837 requests_oauthlib.oauth2_session:DEBUG Request to fetch token completed with status 415. :/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/requests_oauthlib/oauth2_session.py:171
11:47:1422992837 requests_oauthlib.oauth2_session:DEBUG Response headers were CaseInsensitiveDict({'content-length': '155', 'access-control-allow-methods': 'GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS', 'access-control-max-age': '86400', 'content-encoding': 'gzip', 'strict-transport-security': 'max-age=15552000; includeSubdomains', 'vary': 'accept-encoding', 'access-control-expose-headers': 'WWW-Authenticate, Server-Authorization', 'server': 'nginx/1.6.2', 'connection': 'keep-alive', 'cache-control': 'no-cache', 'date': 'Tue, 03 Feb 2015 19:47:22 GMT', 'access-control-allow-origin': '*', 'access-control-allow-headers': 'Authorization, Content-Type, If-None-Match', 'content-type': 'application/json; charset=utf-8'}) and content {"code":415,"errno":999,"error":"Unsupported Media Type","message":"Unspecified error","info":"https://github.com/mozilla/fxa-oauth-server/blob/master/docs/api.md#errors"}. :/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/requests_oauthlib/oauth2_session.py:173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment