9

I want to get the web search results in XML or JSON format, so I'm trying Custom Search Engine to do this using REST API, but when put any URL with different parameters like cx, api key, query, scope. I get always the same error:

Your client does not have permission to get URL /search?q=socer&hl=en&start=10&num=10&output=xml&client=950599431012-4mdbg8eqvb30cf6hamamq8sfihn71qku.apps.googleusercontent.com&cx=006664130785464139277:u_p0bwcuncc from this server. (Client IP address: 105.190.4.82)

If there are other solution for my prob please show it to me.

halfer
  • 19,824
  • 17
  • 99
  • 186
Sanae
  • 99
  • 1
  • 1
  • 4

6 Answers6

14

Because 'Firebase' sanctioned some country like(Iran) this error responds to users.

4

Seems like your IP is blocked by Google.

Using vpn or a proxy should solve the problem.

Dinkheller
  • 4,631
  • 5
  • 39
  • 67
Javad.mrz
  • 207
  • 2
  • 5
4

I had this error when clicking on the Trigger URL of a Google Cloud Function, this answer on Server Fault solved the Error: Forbidden Your client does not have permission to get URL /MY_CLOUD_FUNCTION_NAME from this server cloud function.

It says that you need to

manually add the Cloud Functions Invoker permission to the allUsers user in the Cloud Functions page in the Google Cloud Console.

Perhaps you also can change roles and permissions in your case to get it run?

questionto42
  • 7,175
  • 4
  • 57
  • 90
1

In my case I had a vpn extension turned on by mistake in Google Chrome.

  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). – Suhaib Janjua Sep 05 '21 at 12:58
0

Well it's a hit-or-miss situation. Many users have faced this type of issue. Please try a few solutions from below:

  1. Clearing your browser history.

  2. Try using a tool for cleaning up malwares.

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
cyberrspiritt
  • 908
  • 8
  • 26
0

Same happened to me. I think cause was during execution of firebase deploy command I closed the terminal and command couldn't be completed. Probably firebase adjusts permissions during deploy command function creation and when command breaks permissions could not be executed.

So you can try to delete the function and deploy it again.

Gökçer Gökdal
  • 950
  • 1
  • 11
  • 18