Freebase Error Code: 403 - User Rate Limit Exceeded. Please sign up

有些话、适合烂在心里 提交于 2019-12-25 04:25:06

问题


I keep on getting the below error when fired from the code even though I have signed up and attach key to the url :-

Freebase Error Code: 403 - User Rate Limit Exceeded. Please sign up

When I try to fire the same url from the browser then the result set is displayed which shouldnt be the case as the error says I have crossed some limit or something.

My Query :-

    [{
  "id": null,
  "mid": "/m/07kw5b",
  "name": null,
  "/sports/sports_league/teams": [{
    "mid": null,
    "team": null,
    "/sports/sports_league_participation/team": [{
      "mid": null,
      "id": null,
      "name": null
    }]
  }]
}]

Below is the url:-

https://www.googleapis.com/freebase/v1/mqlread?query=%5B%7B%0A%09%09%09%09%09%09%09%09%09%09++%22id%22%3A+null%2C%0A%09%09%09%09%09%09%09%09%09%09++%22mid%22%3A+%22%2Fm%2F07kw5b%22%2C%0A%09%09%09%09%09%09%09%09%09%09++%22name%22%3A+null%2C%0A%09%09%09%09%09%09%09%09%09%09++%22%2Fsports%2Fsports_league%2Fteams%22%3A+%5B%7B%0A%09%09%09%09%09%09%09%09%09%09%09%22mid%22%3A+null%2C%0A%09%09%09%09%09%09%09%09%09%09%09%22team%22%3A+null%2C%0A%09%09%09%09%09%09%09%09%09%09%09%22%2Fsports%2Fsports_league_participation%2Fteam%22%3A+%5B%7B%0A%09%09%09%09%09%09%09%09%09%09%09++%22mid%22%3A+null%2C%0A%09%09%09%09%09%09%09%09%09%09%09++%22id%22%3A+null%2C%0A%09%09%09%09%09%09%09%09%09%09%09++%22name%22%3A+null%0A%09%09%09%09%09%09%09%09%09%09%09%7D%5D%0A%09%09%09%09%09%09%09%09%09%09++%7D%5D%0A%09%09%09%09%09%09%09%09%09%09%7D%5D&key=[API-Key]&cursor

PHP Code:-

$ch = curl_init();
    curl_setopt($ch, CURLOPT_VERBOSE, true);
    curl_setopt($ch, CURLOPT_URL, $url);  //the above url
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); 
    $json_data = json_decode(curl_exec($ch), true);

    curl_close($ch);

I have not fired the query more than 10 times and in my console too under freebase api it says "0 out of 100,000 requests".

My dashboard graph:-

Can anyone please give me some insights on why this error is coming?Is this something to do with configuration as I am firing the url from localhost.

来源:https://stackoverflow.com/questions/28111695/freebase-error-code-403-user-rate-limit-exceeded-please-sign-up

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