Ron Braha
07/12/2023, 10:12 PMInternal message: __init__() got an unexpected keyword argument 'sourceType'
Failure origin: source
Failure type: system_error
Traceback (most recent call last):
File "/airbyte/integration_code/main.py", line 12, in <module>
launch(SourceFileSecure(), sys.argv[1:])
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 156, in launch
for message in source_entrypoint.run(parsed_args):
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 91, 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 112, in check
check_result = self.source.check(self.logger, config)
File "/usr/local/lib/python3.9/site-packages/source_file/source.py", line 114, in check
client = self._get_client(config)
File "/usr/local/lib/python3.9/site-packages/source_file/source.py", line 78, in _get_client
client = self.client_class(**config)
TypeError: __init__() got an unexpected keyword argument 'sourceType'
2023-07-12 21:56:37 INFO i.a.w.t.TemporalAttemptExecution(get):138 - Cloud storage job log path: /workspace/93215c4c-9414-46cd-9886-be76c4ed7229/0/logs.log
I am using airbyte-api==0.15.1
which is currently the most up-to-date version according to pip.
Some code snippets of this action (were cut from the original context, but I believe it serves the point):
configuration = shared.SourceFileSecure(
dataset_name=dataset_name,
format=data_source_object.get_type(),
url=data_source_object.value.url,
source_type=shared.SourceFileSecureFileSecure.FILE_SECURE,
provider=shared.SourceFileSecureProviderS3AmazonWebServices(
aws_access_key_id=storage.access_key,
aws_secret_access_key=storage.secret_key,
storage=shared.SourceFileSecureProviderS3AmazonWebServicesStorage.S3,
)
)
req = operations.PatchSourceRequest(
source_id=source_id,
source_patch_request=shared.SourcePatchRequest(
configuration=configuration,
name=name,
)
)
res = get_client().sources.patch_source(req)
Thanks for your help!Jon Tan (Airbyte)
07/12/2023, 10:25 PMRon Braha
07/13/2023, 10:58 AMJon Tan (Airbyte)
07/13/2023, 5:27 PMRon Braha
07/13/2023, 5:34 PMJon Tan (Airbyte)
07/13/2023, 9:00 PMRon Braha
07/14/2023, 12:08 PMRon Braha
07/14/2023, 1:57 PM