From yesterday we got error while seding data to BigQuery.
google.api_core.exceptions.Forbidden: 403 POST https://bigquery.googleapis.com/bigquery/v2/projects/latvia-401311/jobs?prettyPrint=false
Could you help please?
Hi @Pestkaa,
Welcome to Google Cloud Community!
I understand that you are having an error regarding missing required authentication credentials for the BigQuery request. The error message from the link you have provided indicates that the authorization header is either invalid or missing the required credentials.
May I know what data format you are using and how you sent it to BigQuery? Authentication for BigQuery depends on the environment where your code is running. In the meantime, please consider the following suggestions that may help with your concern:
(roles/bigquery.admin)
or BigQuery User (roles/bigquery.user)
.GOOGLE_APPLICATION_CREDENTIALS
environment variable is correctly set to the path of the JSON key file that contains your credentials.export GOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"
I hope the above information is helpful.
Hi @Pestkaa a 403 Forbidden error usually points to a permissions issue. Here are a few things you could try to get it sorted:
Check IAM Permissions: Make sure the service account handling the data transfer has the right permissions for BigQuery. At the very least, it should have the BigQuery Data Editor or BigQuery Admin role for the project you're working with.
Verify Project and Dataset Access: Sometimes, this error happens if the service account has access to the dataset but not to the project itself. Double-check that it has the necessary permissions at both levels.
Look at Quotas and Billing: Occasionally, quota limits or billing problems can block data transfers. It’s a good idea to ensure the project is active and there are no billing issues holding things up.
Consider Other Tools: If you’re still stuck and need a quick workaround, you might want to try another tool for BigQuery integration. Windsor.ai, for example, has connectors for BigQuery and could make the transfer process smoother, potentially avoiding these kinds of access issues.
Hope this can be useful