Error Handling in Google Analytics Data API Connector

Summary

The user encountered an error related to an incorrect Property ID (268815183) while running the Google Analytics Data API Connector in Airbyte. The check connection job subprocess finished with exit code 1.


Question

Airbyte OSS: 0.59.1
Version Connector: 2.4.2

During handling of the above exception, another exception occurred:

  File "/airbyte/integration_code/main.py", line 8, in <module>
    run()
  File "/airbyte/integration_code/source_google_analytics_data_api/run.py", line 18, in run
    launch(source, sys.argv[1:])
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 234, in launch
    for message in source_entrypoint.run(parsed_args):
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 115, in run
    yield from map(AirbyteEntrypoint.airbyte_message_to_string, self.check(source_spec, config))
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 139, in check
    check_result = self.source.check(self.logger, config)
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 87, in check
    check_succeeded, error = self.check_connection(logger, config)
  File "/airbyte/integration_code/source_google_analytics_data_api/source.py", line 531, in check_connection
    raise wrong_property_id_error
airbyte_cdk.utils.traced_exception.AirbyteTracedException: Incorrect Property ID: 268815183
2024-05-20 13:55:47 platform > Check connection job subprocess finished with exit code 1
2024-05-20 13:55:47 platform > 
2024-05-20 13:55:47 platform > ----- END CHECK -----```
2024-05-20 13:55:47 platform >

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1716213958736119) if you want 
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["airbyte-oss", "version-connector-2.4.2", "google-analytics-data-api", "error-handling", "incorrect-property-id"]
</sub>