airbytehq/PyAirbyte

[source-freshdesk] cannot sync tickets objects pyairbyte

alaawerda opened this issue · 0 comments

Connector Name

source-freshdesk

Connector Version

0.15.0

What step the error happened?

During the sync

Relevant information

The stream tickets from Freshdesk return this error.

Relevant log output

AirbyteConnectorFailedError: AirbyteConnectorFailedError: Connector failed.

Log output: 
        Syncing stream: tickets 
    Marking stream tickets as RUNNING
    Encountered an exception while reading stream tickets
    Traceback (most recent call last):
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/abstract_source.py", line 135, in read
        yield from self._read_stream(
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/abstract_source.py", line 230, in _read_stream
        for record_data_or_message in record_iterator:
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/streams/core.py", line 169, in read
        for record_data_or_message in records:
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/declarative_stream.py", line 126, in read_records
        yield from self.retriever.read_records(self.get_json_schema(), stream_slice)
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 327, in read_records
        for stream_data in self._read_pages(record_generator, self.state, _slice):
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 297, in _read_pages
        next_page_token = self._next_page_token(response)
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 261, in _next_page_token
        return self._paginator.next_page_token(response, self._last_page_size, self._last_record)
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py", line 107, in next_page_token
        self._token = self.pagination_strategy.next_page_token(response, last_page_size, last_record)
    TypeError: FreshdeskTicketsPaginationStrategy.next_page_token() takes 3 positional arguments but 4 were given
    Marking stream tickets as STOPPED
    Something went wrong in the connector. See the logs for more details.
    Finished syncing tickets
    SourceFreshdesk runtimes:
    Syncing stream tickets 0:00:01.228051
    During the sync, the following streams did not sync successfully: tickets: AirbyteTracedException('FreshdeskTicketsPaginationStrategy.next_page_token() takes 3 positional arguments but 4 were given')
    None
    Traceback (most recent call last):
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/bin/source-freshdesk", line 10, in <module>
        sys.exit(run())
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/source_freshdesk/run.py", line 14, in run
        launch(source, sys.argv[1:])
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/entrypoint.py", line 235, in launch
        for message in source_entrypoint.run(parsed_args):
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/entrypoint.py", line 122, in run
        yield from map(AirbyteEntrypoint.airbyte_message_to_string, self.read(source_spec, config, config_catalog, state))
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/entrypoint.py", line 166, in read
        for message in self.source.read(self.logger, config, catalog, state):
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 167, in read
        yield from super().read(logger, config, catalog, state)
      File "/mnt/var/hadoop/tmp/nm-local-dir/usercache/trusted-service-user/appcache/application_1721148226297_0001/container_1721148226297_0001_01_000001/.venv-source-freshdesk/lib/python3.10/site-packages/airbyte_cdk/sources/abstract_source.py", line 184, in read
        raise AirbyteTracedException(message=error_message, failure_type=FailureType.config_error)
    airbyte_cdk.utils.traced_exception.AirbyteTracedException: None
    During the sync, the following streams did not sync successfully: tickets: AirbyteTracedException('FreshdeskTicketsPaginationStrategy.next_page_token() takes 3 positional arguments but 4 were given')

Contribute

  • Yes, I want to contribute

Tasks

No tasks being tracked yet.