Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Your Client does not have permission to get URL /bigquery/v2/projects/xxxxxxx/jobs from this server

Hi,
trying to run a query against Bigquery via API (php) from the development server

$bigQuery = new BigQueryClient();
......................................
$queryJobConfig = $bigQuery->query($query);

an exception is thrown with the following error message:

"<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 403 (Forbidden)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>403.</b> <ins>That’s an error.</ins>
<p>Your client does not have permission to get URL <code>/bigquery/v2/projects/xxxxxxxxxx/jobs</code> from this server. <ins>That’s all we know.</ins>
"

1. The login credentials are from Service Accounts xxxxxxxxxxxxxxxy@xxxxxxxxxxxxxxxxxxxxx.iam.gserviceaccount.com.
2. With the same credentials and code, the login works fine from local and from the production server.

Could you help us please?
Thanks

Solved Solved
0 2 354
1 ACCEPTED SOLUTION

Hi @techGobid,

Welcome to Google Cloud Community!

It looks like you have the correct permissions set in order to use BigQuery API. Are you currently connected through a proxy server or VPN? If so, try disabling it temporarily to see if that resolves the issue. If you're not using a proxy or VPN, it's possible your IP address might be experiencing temporary restrictions. With this, I suggest to contact Google Cloud Support and confirm whether your IP address is being affected by any rate limiting or blacklisting and identify other potential issues specific to your project.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

View solution in original post

2 REPLIES 2

Hi @techGobid,

Welcome to Google Cloud Community!

It looks like you have the correct permissions set in order to use BigQuery API. Are you currently connected through a proxy server or VPN? If so, try disabling it temporarily to see if that resolves the issue. If you're not using a proxy or VPN, it's possible your IP address might be experiencing temporary restrictions. With this, I suggest to contact Google Cloud Support and confirm whether your IP address is being affected by any rate limiting or blacklisting and identify other potential issues specific to your project.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

Hi Cassandramae,
many thanks for your reply.
We are not connected with proxy or vpn, so I think, as you suggested, that we might be experiencing temporary restrictions,
and we need to contact che Google Cluod Support.
I have a question about this.
In order to purchase the standard support we have registered an "organization account" with which to make the purchase.
But the involved Bigquery project is not under the organization (It is not in any organization) even if the "organization account" is setted as owner of the project.
Will Google support the project even if it is not under the organization?

Thanks.