Error setting up source Google Drive

Summary

The user is facing an error related to reading files from Google Drive in the CSV parser of the Airbyte connector. The error is due to a StopIteration exception in the CSV parser, causing a RuntimeError in the availability strategy.


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

["error", "setting-up", "source-google-drive", "csv-parser", "stopiteration", "runtimeerror", "check-availability-error"]