Clara Buenconsejo
10/17/2025, 1:18 PMThe above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/clara/pyairbyte_connectors/employmenthero_connector.py", line 28, in <module>
source: ab.Source = ab.get_source("source-employment-hero", source_manifest="https://raw.githubusercontent.com/airbytehq/airbyte/refs/heads/master/airbyte-integrations/connectors/source-employment-hero/manifest.yaml")
File "/Users/clara/.asdf/installs/python/3.9.1/lib/python3.9/site-packages/airbyte/sources/util.py", line 95, in get_source
executor=get_connector_executor(
File "/Users/clara/.asdf/installs/python/3.9.1/lib/python3.9/site-packages/airbyte/_executors/util.py", line 186, in get_connector_executor
return DeclarativeExecutor(
File "/Users/clara/.asdf/installs/python/3.9.1/lib/python3.9/site-packages/airbyte/_executors/declarative.py", line 62, in __init__
self.declarative_source = ManifestDeclarativeSource(source_config=self._manifest_dict)
File "/Users/clara/.asdf/installs/python/3.9.1/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 70, in __init__
self._validate_source()
File "/Users/clara/.asdf/installs/python/3.9.1/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 196, in _validate_source
raise ValidationError("Validation against json schema defined in declarative_component_schema.yaml schema failed") from e
jsonschema.exceptions.ValidationError: Validation against json schema defined in declarative_component_schema.yaml schema failedkapa.ai
10/17/2025, 1:18 PMjsonschema.exceptions.ValidationError: Validation against json schema defined in declarative_component_schema.yaml schema failed indicates that the manifest (YAML) file you are using for your Airbyte declarative source does not conform to the expected JSON schema defined in declarative_component_schema.yaml. This schema defines the structure and allowed values for declarative connector manifests in Airbyte. This type of error typically occurs when: - The manifest contains fields, structures, or values that are not valid according to the schema. - There is a mismatch between the manifest version and the version of the Airbyte CDK (Connector Development Kit) being used. For example, if your manifest uses features from a newer schema version than your installed CDK supports, validation will fail. This is highlighted in other issues where the manifest version is greater than the CDK version, causing similar validation errors [[source-declarative-manifest] The manifest version is greater than the airbyte-cdk package version](https://github.com/airbytehq/airbyte/issues/45398). The schema file referenced (declarative_component_schema.yaml) is the authoritative source for what is valid in a manifest. You can find the schema here: - [declarative_component_schema.yaml on GitHub](https://github.com/airbytehq/airbyte-python-cdk/blob/main/airbyte_cdk/sources/declarative/declarative_component_schema.yaml) - [Docs reference to the schema](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/component-schema-reference) How to resolve: 1. Compare your manifest against the schema to ensure all fields and structures are valid. 2. Make sure the version of the Airbyte CDK you are using matches or exceeds the version required by your manifest. 3. If you are using the Airbyte UI or Helm chart, ensure that the correct image and CDK versions are being used, as mismatches can cause this error [[source-declarative-manifest] The manifest version is greater than the airbyte-cdk package version](https://github.com/airbytehq/airbyte/issues/45398). If you need to debug further, you may want to look at the specific validation error details (which field or value failed) that are usually included earlier in the stack trace or error output. If you need more specific help, please provide the manifest file or the full error output including the details of the validation error.Clara Buenconsejo
10/17/2025, 1:20 PMkapa.ai
10/17/2025, 1:20 PMkapa.ai
10/17/2025, 1:20 PMairbyte-cdk package by running: bash pip show airbyte-cdk or, if you are using uv as your package manager (as referenced in the knowledge sources), you can use: bash uv pip show airbyte-cdk This will display the version of airbyte-cdk currently installed in your environment, which is the CDK version used by pyAirbyte and other Airbyte Python components. If you are running Airbyte in a container or a managed environment, you may need to run this command inside the relevant environment or container. If you need to check the version programmatically within Python, you can try: python import pkg_resources print(pkg_resources.get_distribution("airbyte-cdk").version) Again, please note that while these are standard Python package management commands, the knowledge sources do not provide a dedicated Airbyte or pyAirbyte-specific command for this purpose. If you need more detailed or environment-specific instructions, please provide additional context about your setup. For reference on related issues with CDK versions, see [[source-declarative-manifest] The manifest version is greater than the airbyte-cdk package version](https://github.com/airbytehq/airbyte/issues/45398).Clara Buenconsejo
10/17/2025, 1:25 PMkapa.ai
10/17/2025, 1:25 PMkapa.ai
10/17/2025, 1:25 PMairbyte-cdk package to the desired version. The knowledge sources provide the following guidance: - If you are developing connectors locally, you can upgrade or install a specific version of the airbyte-cdk using your Python package manager. For example, if you are using uv (as recommended in Airbyte's documentation), you can run: bash uv tool install --upgrade 'airbyte-cdk[dev]' or to install a specific version: bash uv pip install 'airbyte-cdk==<desired_version>' Replace <desired_version> with the version number you want to use. This will update the Airbyte CDK CLI and libraries in your environment [Developing Connectors Locally > Tooling](https://docs.airbyte.com/platform/1.7/connector-development/local-connector-development#airbyte-connector-development-kits-cdks). - If you are using pip, you can similarly run: bash pip install --upgrade 'airbyte-cdk==<desired_version>' - If you are working with Docker images for connectors, you should update the airbyte-cdk version in your connector's requirements.txt or pyproject.toml and rebuild the Docker image. When you build a new version image for the connector, it will use the specified CDK version [Forum: How to update CDK?](https://discuss.airbyte.io/t/768). Note: If you are using the Airbyte Connector Builder UI or deploying with Helm, ensure that the images and environments are using the correct airbyte-cdk version, as mismatches between manifest and CDK versions can cause validation errors [[source-declarative-manifest] The manifest version is greater than the airbyte-cdk package version](https://github.com/airbytehq/airbyte/issues/45398). If you encounter issues after changing the version, make sure your connector manifests and code are compatible with the new CDK version.Clara Buenconsejo
10/17/2025, 1:31 PMkapa.ai
10/17/2025, 1:31 PMkapa.ai
10/17/2025, 1:31 PMpyairbyte Python package or its upgrade process. If you need to upgrade a Python package like pyairbyte, the standard approach is to use your Python package manager (such as pip) with a command like: bash pip install --upgrade pyairbyte However, please note that this is general Python knowledge and not directly referenced in the provided Airbyte documentation. If you need Airbyte-specific guidance or if pyairbyte is managed differently in your environment, please consult the official [pyairbyte documentation](https://github.com/airbytehq/pyairbyte) or reach out to the Airbyte community for further assistance.Clara Buenconsejo
10/17/2025, 2:52 PMkapa.ai
10/17/2025, 2:52 PMkapa.ai
10/17/2025, 2:52 PMConcurrent read failure and aborts the sync. The root cause is usually found in the logs just before this error and can include: - Rate limit errors (e.g., HTTP 429): The source API is throttling requests, and the retry/backoff logic is exhausted, causing the concurrent read to fail [[source-gorgias] Rate limit causing sync to fail](https://github.com/airbytehq/airbyte/issues/52151). - Authentication errors (e.g., HTTP 401): Token expiration or invalid credentials during a concurrent read [[source-hubspot] Mid-sync Auth Failures](https://github.com/airbytehq/airbyte/issues/62467), [[Amazon Ads Polling Fail in case of 401 error](https://github.com/airbytehq/airbyte/issues/54650)]. - Timeouts or unexpected API responses: For example, a missing key in the response or a gateway timeout [[source-monday] KeyError: 'data'](https://github.com/airbytehq/airbyte/issues/61635), [[source-zendesk-support] ticket_comments not syncing](https://github.com/airbytehq/airbyte/issues/52133). The error is raised in the Airbyte CDK's concurrent read processor, and the stack trace will usually show something like: raise AirbyteTracedException( airbyte_cdk.utils.traced_exception.AirbyteTracedException: Concurrent read failure To troubleshoot: - Look at the log lines immediately preceding the "Concurrent read failure" for the actual cause (rate limit, auth, timeout, etc.). - Address the underlying issue (e.g., increase rate limits, fix credentials, handle pagination or missing data). - If the error is due to rate limits, consider implementing or tuning throttling/rate limiting policies in your connector [[Custom Python Connector: Concurrency](https://docs.airbyte.com/platform/connector-development/tutorials/custom-python-connector/concurrency)]. In summary, "Concurrent read failure" is a generic error indicating that one of the parallel data extraction tasks failed, and you should check the detailed logs for the specific root cause.Clara Buenconsejo
10/17/2025, 4:17 PMkapa.ai
10/17/2025, 4:17 PMkapa.ai
10/17/2025, 4:18 PMClara Buenconsejo
10/17/2025, 5:52 PM2025-10-18 01:51:20 - ERROR - Forbidden. You don't have permission to access this resource.
2025-10-18 01:51:20 - INFO - {"type":"TRACE","trace":{"type":"ERROR","emitted_at":1760723480576,"error":{"message":"Forbidden. You don't have permission to access this resource.","internal_message":"'GET' request to 'https://api.employmenthero.com/api/v1/organisations/8dc523ee-6e0c-42fd-aefc-70890b83eeeb/employees?page_index=1&items_per_page=20' failed with status code '403' and error message: '403 Forbidden'. Request (body): 'None'. Response (body): '{'error': {'errors': [{'message': '403 Forbidden'}]}}'. Response (headers): '{'Content-Type': 'application/vnd.api+json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'cache-control': 'no-cache', 'content-security-policy': \"default-src 'none'\", 'x-request-id': '171db2da-59c1-43a4-a9a2-0dbdc0cbd9c7', 'x-runtime': '0.054213', 'vary': 'Accept-Encoding, Origin', 'content-encoding': 'gzip', 'date': 'Fri, 17 Oct 2025 17:51:20 GMT', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-content-type-options': 'nosniff', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', 'x-api-gateway-version': '1.25', 'x-ratelimit-limit': '20, 20;w=1, 100;w=60', 'x-ratelimit-remaining': '18', 'x-ratelimit-reset': '1', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 cb45a99b778649cddac95c220851f0ae.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'MNL51-P1', 'Alt-Svc': 'h3=\":443\"; ma=86400', 'X-Amz-Cf-Id': 'UUQN60dP7gLAGLhlVW66pY5xcHS1bsl_caa1A2PTg01_ihe3Woa7UA=='}'.","stack_trace":"Traceback (most recent call last):\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/concurrent/partition_reader.py\", line 79, in process_partition\n for record in partition.read():\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/stream_slicers/declarative_partition_generator.py\", line 103, in read\n for stream_data in self._retriever.read_records(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py\", line 525, in read_records\n for stream_data in self._read_pages(record_generator, self.state, _slice):\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py\", line 395, in _read_pages\n response = self._fetch_next_page(stream_state, stream_slice, next_page_token)\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py\", line 326, in _fetch_next_page\n return self.requester.send_request(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py\", line 458, in send_request\n request, response = self._http_client.send_request(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py\", line 548, in send_request\n response: requests.Response = self._send_with_retry(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py\", line 294, in _send_with_retry\n response = backoff_handler(rate_limit_backoff_handler(user_backoff_handler))(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/backoff/_sync.py\", line 105, in retry\n ret = target(*args, **kwargs)\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/backoff/_sync.py\", line 105, in retry\n ret = target(*args, **kwargs)\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/backoff/_sync.py\", line 105, in retry\n ret = target(*args, **kwargs)\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py\", line 364, in _send\n self._handle_error_resolution(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py\", line 451, in _handle_error_resolution\n raise MessageRepresentationAirbyteTracedErrors(\nairbyte_cdk.sources.streams.http.http_client.MessageRepresentationAirbyteTracedErrors: Forbidden. You don't have permission to access this resource.\n","failure_type":"config_error","stream_descriptor":{"name":"employees"}}}}
2025-10-18 01:51:20 - ERROR - Forbidden. You don't have permission to access this resource.
2025-10-18 01:51:20 - INFO - {"type":"TRACE","trace":{"type":"ERROR","emitted_at":1760723480940,"error":{"message":"Forbidden. You don't have permission to access this resource.","internal_message":"'GET' request to 'https://api.employmenthero.com/api/v1/organisations/8dc523ee-6e0c-42fd-aefc-70890b83eeeb/leave_requests?page_index=1&items_per_page=20' failed with status code '403' and error message: '403 Forbidden'. Request (body): 'None'. Response (body): '{'error': {'errors': [{'message': '403 Forbidden'}]}}'. Response (headers): '{'Content-Type': 'application/vnd.api+json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'cache-control': 'no-cache', 'content-security-policy': \"default-src 'none'\", 'x-request-id': '15fd1d8c-a760-4b44-a9b9-40b0d582b5ec', 'x-runtime': '0.032095', 'vary': 'Accept-Encoding, Origin', 'content-encoding': 'gzip', 'date': 'Fri, 17 Oct 2025 17:51:20 GMT', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'x-content-type-options': 'nosniff', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', 'x-api-gateway-version': '1.25', 'x-ratelimit-limit': '20, 20;w=1, 100;w=60', 'x-ratelimit-remaining': '17', 'x-ratelimit-reset': '1', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 6f49472322bb292bbdd743221b50eb6a.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'MNL51-P1', 'Alt-Svc': 'h3=\":443\"; ma=86400', 'X-Amz-Cf-Id': 'SZDLysU7zGX5cdwkrCC4MD06L0p8p07Sb6rnkpWVGTWiCOfnJJSyew=='}'.","stack_trace":"Traceback (most recent call last):\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/concurrent/partition_reader.py\", line 79, in process_partition\n for record in partition.read():\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/stream_slicers/declarative_partition_generator.py\", line 103, in read\n for stream_data in self._retriever.read_records(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py\", line 525, in read_records\n for stream_data in self._read_pages(record_generator, self.state, _slice):\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py\", line 395, in _read_pages\n response = self._fetch_next_page(stream_state, stream_slice, next_page_token)\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py\", line 326, in _fetch_next_page\n return self.requester.send_request(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py\", line 458, in send_request\n request, response = self._http_client.send_request(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py\", line 548, in send_request\n response: requests.Response = self._send_with_retry(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py\", line 294, in _send_with_retry\n response = backoff_handler(rate_limit_backoff_handler(user_backoff_handler))(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/backoff/_sync.py\", line 105, in retry\n ret = target(*args, **kwargs)\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/backoff/_sync.py\", line 105, in retry\n ret = target(*args, **kwargs)\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/backoff/_sync.py\", line 105, in retry\n ret = target(*args, **kwargs)\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py\", line 364, in _send\n self._handle_error_resolution(\n File \"/Users/clara/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py\", line 451, in _handle_error_resolution\n raise MessageRepresentationAirbyteTracedErrors(\nairbyte_cdk.sources.streams.http.http_client.MessageRepresentationAirbyteTracedErrors: Forbidden. You don't have permission to access this resource.\n","failure_type":"config_error","stream_descriptor":{"name":"leave_requests"}}}}kapa.ai
10/17/2025, 5:52 PMkapa.ai
10/17/2025, 5:52 PMemployees and leave_requests streams. The key details are: Forbidden. You don't have permission to access this resource. 'GET' request to 'https://api.employmenthero.com/api/v1/organisations/.../employees?page_index=1&items_per_page=20' failed with status code '403' and error message: '403 Forbidden'. ... 'GET' request to 'https://api.employmenthero.com/api/v1/organisations/.../leave_requests?page_index=1&items_per_page=20' failed with status code '403' and error message: '403 Forbidden'. ### Analysis - HTTP 403 Forbidden means the request was authenticated but not authorized to access the resource. This is typically due to missing or insufficient permissions (scopes) on the API token or credentials used. - The error is classified as a config_error in Airbyte, indicating a misconfiguration in the connector setup, most likely related to authentication or authorization. - The stack trace shows the error is raised during the concurrent reading of partitions, but the root cause is the API's refusal to grant access. ### Likely Causes - The API token (Bearer token) used does not have the required scopes/permissions to access the employees and leave_requests endpoints. - The Employment Hero account or app may not be configured to allow access to these resources. - There could be organization-level restrictions or the token may be expired or invalid. ### What to Check 1. API Token Scopes: Ensure the Bearer token used has the correct scopes for the endpoints you are trying to access. The Employment Hero connector requires you to set up an OAuth app and obtain a token with the necessary permissions. Refer to the Employment Hero API documentation and make sure the token is valid and has access to the required resources [Employment Hero Source Setup](https://docs.airbyte.com/integrations/sources/employment-hero). 2. Connector Configuration: Double-check the configuration fields in your Airbyte source setup, especially the API key and any organization or employee IDs required. 3. Account/Plan Restrictions: Some APIs restrict access to certain endpoints based on your account type or plan. Make sure your Employment Hero account is eligible to access these endpoints. 4. Token Validity: If the token is expired or revoked, you will also receive a 403 error. Try generating a new token and updating your Airbyte configuration. ### Reference This pattern of 403 errors due to missing scopes or plan requirements is also seen in other connectors, such as Recharge, where a 403 error is explicitly linked to missing permission scopes or plan limitations [Recharge API Token Permissions (Scopes) & Plan Requirements](https://docs.airbyte.com/integrations/sources/recharge#api-token-permissions-scopes--plan-requirements). --- Summary: The 403 Forbidden errors are almost certainly due to missing or insufficient API permissions. Review your Employment Hero API token scopes, connector configuration, and account eligibility to resolve the issue. If the problem persists after verifying these, consult the Employment Hero API documentation or your account administrator for further assistance.Clara Buenconsejo
10/17/2025, 5:56 PMkapa.ai
10/17/2025, 5:56 PMkapa.ai
10/17/2025, 5:56 PMcheck operation in Airbyte (and by extension, in pyairbyte) is designed to validate whether the provided configuration allows the connector to access the source system. The check command typically performs a basic connectivity test, such as authenticating with the API or verifying credentials, but it does not necessarily test access to all endpoints or data streams that will be used during a full sync. A common scenario is that check succeeds because the credentials are valid and the connector can reach the API, but the actual sync fails because the user or token does not have permission to access specific resources or endpoints required during the sync. For example, a 403 Forbidden error may occur during sync if the API token lacks the necessary scopes for certain endpoints, even though the initial connection test passed [[Airbyte Protocol: Check](https://docs.airbyte.com/platform/1.7/understanding-airbyte/airbyte-protocol#common-interface)], [[source-Confluence] REST API encounters a 403 error even when after passing the test when creating source](https://github.com/airbytehq/airbyte/issues/33737). This behavior is expected because the check operation is intentionally lightweight and may not cover all possible data access scenarios that occur during a full sync. To improve reliability, some connector implementations enhance the check by attempting to read a sample record from a stream, but even this may not catch all permission issues if the user's access is limited to certain streams or data [[Check and error handling](https://docs.airbyte.com/platform/1.7/connector-development/tutorials/custom-python-connector/check-and-error-handling)]. In summary: source.check() can succeed if the configuration is valid and basic connectivity is established, but the sync can still fail later due to insufficient permissions or other issues encountered when accessing specific data during the sync process.