airbytehq / airbyte

The leading data integration platform for ETL / ELT data pipelines from APIs, databases & files to data warehouses, data lakes & data lakehouses. Both self-hosted and Cloud-hosted.
https://airbyte.com
Other
15.39k stars 3.97k forks source link

Source: Google Analytics 4 (GA4) - requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://analyticsdata.googleapis.com/v1beta/properties/31418... (via Sentry #25836

Open lazebnyi opened 1 year ago

lazebnyi commented 1 year ago

Topic

Config error for GA connector

Revelant information

Original issue - https://github.com/airbytehq/oncall/issues/1752

Affected Workspace Details:

Environment Affected Workspaces Connection Link Case/Chat Link Sentiment User Data Access Reporter
cloud oauth-testing workspace N/A πŸ‘ :ok: πŸ‘Ž 😠 Y/N (did you ask?!?!) Automated from Sentry

Blast Radius

Please fill in: Could this issue be impacting other users? if so, how many?

Can this issue be fixed by reverting to a previous commit or connector version?

Human: please fill this in.

Steps to reproduce

When running: discover

More details in Sentry issue First seen: 2023-03-29T06:57:44.852000Z

Current Behavior

Describe what is the problem user is having.

Logs

/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/streams/http/http.py
Function: _send
Type: requests.exceptions.HTTPError

403 Client Error: Forbidden for url: https://analyticsdata.googleapis.com/v1beta/properties/314186564/metadata

On Call Summary

Date Start Status Next Step End Status
2023-03-29 New Issue ... Waiting

This issue was created by the Sentry automation workflow.

dave-tomkinson commented 1 year ago

I had this issues too. My solution was to add the 'Google Analytics Data API', the link in the setup/Airbyte docs took me to 'Google Analytics API' So now I have: Analytics Reporting API, Google Analytics API and Google Analytics Data APIs enabled in the service account (but I think Google Analytics API isn't needed for GA4 connections).