{"action":"opened","issue":{"url":"https://api.github.com/repos/xee-lab/xee-api-docs/issues/88","repository_url":"https://api.github.com/repos/xee-lab/xee-api-docs","labels_url":"https://api.github.com/repos/xee-lab/xee-api-docs/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/xee-lab/xee-api-docs/issues/88/comments","events_url":"https://api.github.com/repos/xee-lab/xee-api-docs/issues/88/events","html_url":"https://github.com/xee-lab/xee-api-docs/issues/88","id":317975234,"number":88,"title":"HTTP error 400 when getting token for an unknown reason","user":{"login":"solsticedhiver","id":105990,"avatar_url":"https://avatars2.githubusercontent.com/u/105990?v=4","gravatar_id":"","url":"https://api.github.com/users/solsticedhiver","html_url":"https://github.com/solsticedhiver","followers_url":"https://api.github.com/users/solsticedhiver/followers","following_url":"https://api.github.com/users/solsticedhiver/following{/other_user}","gists_url":"https://api.github.com/users/solsticedhiver/gists{/gist_id}","starred_url":"https://api.github.com/users/solsticedhiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solsticedhiver/subscriptions","organizations_url":"https://api.github.com/users/solsticedhiver/orgs","repos_url":"https://api.github.com/users/solsticedhiver/repos","events_url":"https://api.github.com/users/solsticedhiver/events{/privacy}","received_events_url":"https://api.github.com/users/solsticedhiver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T10:50:12Z","updated_at":"2018-04-26T10:50:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have developped an app using app engine. When using the local dev server, every thing works fine and I can authenticate and get a token and use the app. For that I redirect to localhost:8080\r\n\r\nBut when I push my code to App Engine, I can't get the token of the 2nd step of OAuth because I got an error I don't understand.\r\n    \r\n    HTTP Error 400: {\"error\":\"invalid_request\",\"error_description\":\"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.\"}\r\n\r\nThe code is exactly the same, only the redirect uri i schanged.\r\n\r\nI compared the headers sent by the code when run localy and run on app engine, there is 2 differences.\r\n\r\n    {\r\n      \"args\": {\r\n        \r\n      },\r\n      \"data\": \"\",\r\n      \"files\": {\r\n        \r\n      },\r\n      \"form\": {\r\n        \"code\": \"bGVCMXXXXGtaVWJFNVJBUnh1TGNqY253dm5pRUpGa0o\",\r\n        \"grant_type\": \"authorization_code\"\r\n      },\r\n      \"headers\": {\r\n        \"Accept-Encoding\": \"gzip\",\r\n        \"Authorization\": \"Basic mybasekeysecret\",\r\n        \"Connection\": \"close\",\r\n        \"Content-Length\": \"78\",\r\n        \"Content-Type\": \"application\\/x-www-form-urlencoded\",\r\n        \"Host\": \"httpbin.org\",\r\n        \"User-Agent\": \"Python-urllib\\/2.7 AppEngine-Google; (+http:\\/\\/code.google.com\\/appengine; appid: dev~myxeedashboard)\"\r\n      },\r\n      \"json\": null,\r\n      \"origin\": \"myip\",\r\n      \"url\": \"https:\\/\\/httpbin.org\\/post\"\r\n    }\r\n\r\nand on app engine\r\n\r\n    {\r\n      \"args\": {\r\n        \r\n      },\r\n      \"data\": \"\",\r\n      \"files\": {\r\n        \r\n      },\r\n      \"form\": {\r\n        \"code\": \"ZDXXXXXXXXX1JDNDZOMVFUZEkzYnF3SEtlS3VxU1I\",\r\n        \"grant_type\": \"authorization_code\"\r\n      },\r\n      \"headers\": {\r\n        \"Accept-Encoding\": \"gzip,deflate,br\",\r\n        \"Authorization\": \"Basic mybase64keysecret\",\r\n        \"Connection\": \"close\",\r\n        \"Content-Length\": \"78\",\r\n        \"Content-Type\": \"application\\/x-www-form-urlencoded\",\r\n        \"Host\": \"httpbin.org\",\r\n        \"User-Agent\": \"Python-urllib\\/2.7 AppEngine-Google; (+http:\\/\\/code.google.com\\/appengine; appid: e~myxeedashboard)\",\r\n        \"X-Cloud-Trace-Context\": \"3bc377a888836efd079a22f8f23371ab\\/4355818241902851511;o=1\"\r\n      },\r\n      \"json\": null,\r\n      \"origin\": \"107.178.196.147\",\r\n      \"url\": \"https:\\/\\/httpbin.org\\/post\"\r\n    }\r\n\r\nThe Accept-Encoding and the X-Cloud-Trace-Context\r\n\r\nSo why xee server is choking and refusing my connexion ???"}}
{"actor":{"display_login":"solsticedhiver"}}