Google Analytics Data Feed API Error 414 URI Too Large

混江龙づ霸主 提交于 2019-12-10 10:36:50

问题


When using the google analytics data API with the python gdata library, we are assembling a GET request per the instructions in the documentation here: http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDataFeed.html

We are running into problems however. As our requests get longer, we're occasionally getting a 414 error URI Too Large when we have a lot of filters.

Is there any way to use a POST request with the gdata API or otherwise get around the 414?

EDIT: Just tried using a POST request and get 403 Target feed is read-only. Is there any way around this restriction?


回答1:


There is a 128 character limit on filters regardless of whether you're using GET or POST. Anything longer than that will result in a 400 error. The only way around that length limit is to use AND/OR boolean logic.

Here's the full explanation from Google: Rules for Filter Expressions



来源:https://stackoverflow.com/questions/7575263/google-analytics-data-feed-api-error-414-uri-too-large

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