Error Setting Up Google Drive Source

Summary

User is encountering a StopIteration error while attempting to set up a Google Drive source in Airbyte, indicating potential issues with file accessibility or configuration settings.


Question

i am facing issues with setting up my source google drive but i am getting the same error. some help would be appreciated [‘Traceback (most recent call last):\n File “/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/file_based/file_types/csv_parser.py”, line 55, in read_data\n headers = self._get_headers(fp, config_format, dialect_name)\n File “/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/file_based/file_types/csv_parser.py”, line 108, in _get_headers\n headers = list(next(reader))\nStopIteration\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File “/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/file_based/availability_strategy/default_file_based_availability_strategy.py”, line 95, in _check_parse_record\n record = next(iter(parser.parse_records(stream.config, file, self.stream_reader, logger, discovered_schema=None)))\n File “/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/file_based/file_types/csv_parser.py”, line 206, in parse_records\n for row in data_generator:\nRuntimeError: generator raised StopIteration\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File “/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/file_based/availability_strategy/default_file_based_availability_strategy.py”, line 64, in check_availability_and_parsability\n self._check_parse_record(stream, file, logger)\n File “/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/file_based/availability_strategy/default_file_based_availability_strategy.py”, line 102, in _check_parse_record\n raise CheckAvailabilityError(FileBasedSourceError.ERROR_READING_FILE, stream=stream.name, file=file.uri) from exc\nairbyte_cdk.sources.file_based.exceptions.CheckAvailabilityError: Error opening file. Please check the credentials provided in the config and verify that they provide permission to read files. Contact Support if you need assistance.\nstream=test file=diabetes_prediction_dataset.csv\n’] this is issue i am facing



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

['google-drive', 'source-setup', 'error', 'file-accessibility', 'airbyte-cdk']