400 Bad Request Required: X-Goog-Encode-Response-If-Executable

巧了我就是萌 提交于 2019-12-13 04:24:31

问题


I've been using oath 2 for all my fusion table queries as described here: https://developers.google.com/fusiontables/docs/articles/oauthfusiontables). From today I'm getting this response for all queries: Error 400 Bad request:Required: X-Goog-Encode-Response-If-Executable.

Can't find similar issues with google search. No change to my code recently-was there any changes made to fusion tables API or oath 2 recently that I'm not aware of that can cause this error? Please help


回答1:


The latest Fusion Tables product roll out included a change that enforced request safety. The side effect of this is that GET requests with alt=csv that use the access_token=[your token] argument result in an error.

The immediate fix is to use an authorization header and remove the access_token=[your token] argument from the GET request.

The request header should include Authorization: Bearer [your token]

We are working on a more permanent fix which would re-enable GET requests with access_token=[your token] arguments. This may take a few hours



来源:https://stackoverflow.com/questions/22663191/400-bad-request-required-x-goog-encode-response-if-executable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!