Kiet Luu (Ken)
08/22/2025, 3:13 PMkapa.ai
08/22/2025, 3:13 PMKiet Luu (Ken)
08/22/2025, 3:14 PMkapa.ai
08/22/2025, 3:14 PMkapa.ai
08/22/2025, 3:14 PMconnection_specification under the authorization property. You have two authentication options: OAuth2 and Bearer Token. The config dict should be structured as follows, depending on which authentication method you want to use: ### 1. OAuth2 Authentication python config = { "authorization": { "auth_type": "Oauth", "client_id": "<YOUR_CLIENT_ID>", "client_secret": "<YOUR_CLIENT_SECRET>", "client_access_token": "<YOUR_ACCESS_TOKEN>" } } - auth_type must be "Oauth" - client_id, client_secret, and client_access_token are required and should be filled with your credentials. ### 2. Bearer Token Authentication python config = { "authorization": { "auth_type": "Token", "bearer_token": "<YOUR_BEARER_TOKEN>" } } - auth_type must be "Token" - bearer_token is required and should be filled with your token. Note: - The config dict must have an authorization key, which is an object matching one of the two schemas above. - The field names and structure are dictated by the connection_specification in your YAML, and this matches Airbyte's standard for config-based connectors using SelectiveAuthenticator and OAuth/Bearer authentication options. This structure is directly derived from the YAML's connection_specification and authenticator definitions, as described in the Airbyte documentation for config-based authentication schemas [Authentication](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/authentication).Kiet Luu (Ken)
08/22/2025, 3:17 PMcheck operation did not return a status.",
367 log_text=self._last_log_messages,
368 )
369 except exc.AirbyteConnectorFailedError as ex:
--> 370 raise exc.AirbyteConnectorCheckFailedError(
371 connector_name=self.name,
372 original_exception=ex,
373 ) from None
AirbyteConnectorCheckFailedError: Connector check failed. (AirbyteConnectorCheckFailedError)
------------------------------------------------------------
AirbyteConnectorCheckFailedError: Connector check failed.
Please review the log file for more information.
Connector Name: 'ticktick'
------------------------------------------------------------
Caused by: Connector failed. (AirbyteConnectorFailedError)
------------------------------------------------------------
AirbyteConnectorFailedError: Connector failed.
Please review the log file for more information.
Connector Name: 'ticktick'
------------------------------------------------------------
Caused by: 'str' object has no attribute 'value'
Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.log
Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.logkapa.ai
08/22/2025, 3:17 PMkapa.ai
08/22/2025, 3:17 PMkapa.ai
08/22/2025, 3:17 PMKiet Luu (Ken)
08/22/2025, 3:18 PMcheck operation did not return a status.",
367 log_text=self._last_log_messages,
368 )
369 except exc.AirbyteConnectorFailedError as ex:
--> 370 raise exc.AirbyteConnectorCheckFailedError(
371 connector_name=self.name,
372 original_exception=ex,
373 ) from None
AirbyteConnectorCheckFailedError: Connector check failed. (AirbyteConnectorCheckFailedError)
------------------------------------------------------------
AirbyteConnectorCheckFailedError: Connector check failed.
Please review the log file for more information.
Connector Name: 'ticktick'
------------------------------------------------------------
Caused by: Connector failed. (AirbyteConnectorFailedError)
------------------------------------------------------------
AirbyteConnectorFailedError: Connector failed.
Please review the log file for more information.
Connector Name: 'ticktick'
------------------------------------------------------------
Caused by: 'str' object has no attribute 'value'
Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.log
Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.logkapa.ai
08/22/2025, 3:18 PMCaused by: 'str' object has no attribute 'value' and your config: python config = { "authorization": { "auth_type": "Token", "bearer_token": f"{os.getenv('TICKTICK_TOKEN')}" } } This error suggests that somewhere in the connector code or manifest, a string is being accessed as if it were an object with a .value attribute. This is not expected for a simple string like a bearer token. ### What to Check 1. Config Structure Your config structure matches the YAML's connection_specification for the Bearer Token path, so the config itself appears correct. 2. Manifest and Authenticator The YAML uses a BearerAuthenticator with: yaml api_token: "{{ config.authorization.bearer_token }}" This is the correct way to reference a string value from the config for the BearerAuthenticator, according to Airbyte documentation [BearerAuthenticator Reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/BearerAuthenticator). 3. Possible Source of Error The error 'str' object has no attribute 'value' is not documented in the official Airbyte docs for config-based connectors or BearerAuthenticator. This suggests the issue may be in the connector implementation or in how the config is being parsed/interpreted by PyAirbyte or the connector runtime. ### Next Steps - Check the Log File: The error message points to a log file for more details: Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K395P796A.log Reviewing this log may provide more context about where the .value attribute is being accessed. - Check for Typo or Manifest Issue: Double-check your YAML and config for any typos or mismatches. For example, ensure you are not accidentally passing an object where a string is expected, or vice versa. - Connector Version: If you are using a custom or in-development connector, there may be a bug in the code that expects an object with a .value attribute instead of a string. This is not a standard requirement for BearerAuthenticator in Airbyte's config-based connectors [BearerAuthenticator Reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/BearerAuthenticator). ### Summary - Your config structure appears correct for the Bearer Token path. - The error is not explained in the official Airbyte documentation and may be due to a bug or misconfiguration in the connector code or manifest. - Check the referenced log file for more details on the error's origin. If you can share the relevant part of the log file or more details from the error trace, I may be able to provide more specific guidance. The knowledge sources do not contain explicit information about this specific 'str' object has no attribute 'value' error.kapa.ai
08/22/2025, 3:18 PMkapa.ai
08/22/2025, 3:18 PMBearerAuthenticator expects an api_token string, and your config: python config = { "authorization": { "auth_type": "Token", "bearer_token": "<YOUR_BEARER_TOKEN>" } } matches the expected schema, where bearer_token is mapped to api_token in the authenticator definition [BearerAuthenticator Reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/BearerAuthenticator). However, the error message: Caused by: 'str' object has no attribute 'value' is not documented in the official Airbyte documentation, and the knowledge sources do not provide explicit information about this specific error. The documentation does not mention that a string value for the bearer token should have a .value attribute, nor does it describe this as a requirement for BearerAuthenticator. What you should do: - Double-check that your environment variable TICKTICK_TOKEN is set and not None or an empty string. - Review the referenced log file for more details, as the error may be caused by an implementation detail or a bug in the connector, which is not covered in the official documentation. If you continue to encounter this error, it may be necessary to consult the connector's implementation or seek support from the Airbyte community, as the knowledge sources do not contain enough information to resolve this specific 'str' object has no attribute 'value' error.Kiet Luu (Ken)
08/22/2025, 3:23 PMkapa.ai
08/22/2025, 3:23 PMkapa.ai
08/22/2025, 3:23 PMKiet Luu (Ken)
08/22/2025, 3:45 PMkapa.ai
08/22/2025, 3:45 PMkapa.ai
08/22/2025, 3:45 PMsource_manifest argument to the get_source() method. This allows you to use custom connectors locally without needing to publish them to the Airbyte Marketplace [How to add custom source to PyAirbyte using the no-code builder](https://airbyte.com/tutorials/how-to-add-custom-source-to-pyairbyte-using-the-no-code-builder). If you encounter issues, they may be due to limitations or bugs in the connector definition or PyAirbyte itself, but the documented workflow supports running unpublished custom YAML connectors.Kiet Luu (Ken)
08/22/2025, 3:51 PM{self.name}.",
file=sys.stderr,
)
log_connector_check_result(
name=self.name,
state=EventState.SUCCEEDED,
)
return
log_connector_check_result(
name=self.name,
state=EventState.FAILED,
)
# Give logs a chance to be flushed.
sleep(1)
raise exc.AirbyteConnectorCheckFailedError(
connector_name=self.name,
help_url=self.docs_url,
context={
"failure_reason": msg.connectionStatus.message,
},
)
raise exc.AirbyteConnectorCheckFailedError(
File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte/_connector_base.py", line 496, in _execute
connector_name=self.name,
log_text=self._last_log_messages,
original_exception=e,
) from None
airbyte.exceptions.AirbyteConnectorFailedError: Connector failed. (AirbyteConnectorFailedError)
------------------------------------------------------------
AirbyteConnectorFailedError: Connector failed.
Please review the log file for more information.
Connector Name: 'ticktick'
------------------------------------------------------------
Caused by: 'str' object has no attribute 'value'
Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K397H8YD3.log
During handling of the above exception, another exception occurred:
File "/home/ubuntu/dev/ticktick_dbt/.venv/lib/python3.12/site-packages/airbyte/_connector_base.py", line 370, in check
connector_name=self.name,
original_exception=ex,
) from None
File "/home/ubuntu/dev/ticktick_dbt/EL/main.py", line 26, in <module>
source.check()
File "/usr/lib/python3.12/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.12/runpy.py", line 198, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
airbyte.exceptions.AirbyteConnectorCheckFailedError: Connector check failed. (AirbyteConnectorCheckFailedError)
------------------------------------------------------------
AirbyteConnectorCheckFailedError: Connector check failed.
Please review the log file for more information.
Connector Name: 'ticktick'
------------------------------------------------------------
Caused by: Connector failed. (AirbyteConnectorFailedError)
------------------------------------------------------------
AirbyteConnectorFailedError: Connector failed.
Please review the log file for more information.
Connector Name: 'ticktick'
------------------------------------------------------------
Caused by: 'str' object has no attribute 'value'
Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K397H8YD3.log
Log file: /tmp/airbyte/logs/ticktick/ticktick-log-K397H8YD3.logkapa.ai
08/22/2025, 3:51 PMkapa.ai
08/22/2025, 3:52 PM'str' object has no attribute 'value' is occurring because the connector code is trying to access a .value attribute on a string, which is not valid. This happens during the processing of the advanced_auth section in your YAML, even though your config is using the "Token" authentication path and not OAuth. The Airbyte documentation describes that the advanced_auth section is used to provide an improved user experience for OAuth flows, but it should only be applicable when the config matches the predicate_key and predicate_value specified in the YAML (in your case, when authorization.auth_type is "Oauth"). If your config uses "Token", the advanced auth flow should not be triggered [AuthFlow object reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/AuthFlow). However, the knowledge sources do not provide details about this specific error or about a bug where the connector attempts to process advanced_auth even when the predicate does not match. There is no documentation about this being a known or unsupported case. Summary: - Your config and YAML are structured according to the documentation. - The error is not explained in the official docs and may be due to a bug in the Airbyte CDK or PyAirbyte when handling custom YAML connectors with both OAuth and Token options. - The knowledge sources do not contain enough information to confirm if this is a supported or unsupported case, nor do they provide a workaround for this specific issue. If you need to proceed, you may need to consult the Airbyte community or GitHub issues for further troubleshooting, as the documentation does not address this scenario.Kiet Luu (Ken)
08/22/2025, 4:37 PMkapa.ai
08/22/2025, 4:37 PMkapa.ai
08/22/2025, 4:37 PMapi_budget block in custom YAML manifests. The documentation provides detailed examples and schema references for defining api_budget with various rate limiting policies (such as FixedWindowCallRatePolicy, MovingWindowCallRatePolicy, and UnlimitedCallRatePolicy) in YAML files for connectors, including custom ones [Rate limiting (API Budget)](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/rate-limit-api-budget). However, the knowledge sources do not explicitly mention PyAirbyte’s support for the api_budget block in custom YAML connectors. While PyAirbyte is designed to run custom YAML connectors exported from the Connector Builder, there is no direct documentation confirming or denying that the api_budget block is fully supported when running such connectors via PyAirbyte. In summary: - Airbyte YAML connectors support api_budget blocks. - There is no explicit confirmation in the knowledge sources about PyAirbyte’s support for api_budget in custom YAML connectors. - If you encounter issues, they may be due to limitations not covered in the official documentation.