Hoang Tran Minh
07/31/2025, 6:27 AMkapa.ai
07/31/2025, 6:27 AMjson { "access_token": "YOUR_ACCESS_TOKEN_123", "refresh_token": "YOUR_REFRESH_TOKEN_123", "expires_in": 7200 } If the property name is different, you must specify it using the access_token_name parameter in your authenticator configuration. 2. Set the correct access_token_name: In your connector's OAuthAuthenticator configuration, set the access_token_name to match the property name in the response. For example: yaml authenticator: type: OAuthAuthenticator token_refresh_endpoint: "https://yourconnectorservice.com/oauth/refresh/endpoint" client_id: "{{ config['client_id'] }}" client_secret: "{{ config['client_secret'] }}" refresh_token: "{{ config['refresh_token'] }}" access_token_name: "token" # Use the actual property name if it's not "access_token" [See YAML reference for OAuthAuthenticator](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/OAuthAuthenticator) 3. Verify the refresh request body and headers: Some APIs require specific request bodies or headers. Use refresh_request_body and refresh_request_headers to customize the request if needed. 4. Debugging tip: If you are unsure what the API returns, try calling the token refresh endpoint manually (e.g., with curl or Postman) and inspect the response. Summary: This error is almost always due to a mismatch between what Airbyte expects (the property name for the access token) and what the API actually returns. Adjust the access_token_name parameter to match the API response, and the error should be resolved. For more details and examples, see the [OAuthAuthenticator documentation](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/OAuthAuthenticator) and [advanced OAuth configuration examples](https://docs.airbyte.com/platform/next/connector-development/config-based/advanced-topics/oauth#advanced-case-refresh-token--single-use-refresh-token-support).Hoang Tran Minh
07/31/2025, 6:31 AMkapa.ai
07/31/2025, 6:31 AMkapa.ai
07/31/2025, 6:31 AMaccess_token_name: result.access_token and expires_in_name: result.expires_in is not correct for Airbyte's OAuthAuthenticator. According to the documentation, these fields expect only the property name, not a dot-separated path. By default, Airbyte looks for the property at the top level of the response, but if your token is nested (as in your example), you need to use a different approach. Your API response: json { "code": 0, "message": "OK", "result": { "access_token": "abc123", "expires_in": 3600, "refresh_token": "def456" } } Correct way to handle nested fields: Currently, the OAuthAuthenticator does not support dot notation (like result.access_token) for nested fields. It only supports top-level keys. If your access token is nested, you have two options: 1. Update your backend to return the token at the top level (if possible). 2. Write a custom authenticator (not supported in config-based connectors out-of-the-box). 3. (Declarative Connectors Only) If you are using declarative connectors, you can use the path_in_oauth_response property to specify the path to the nested field, but this is not available in the config-based OAuthAuthenticator YAML as per the current documentation. Documentation Reference: > The field to extract access token from in the response. Default: "access_token". > (No support for dot notation or nested fields in config-based YAML) [See OAuthAuthenticator Reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/OAuthAuthenticator) Summary Table: | What you want | What Airbyte supports in config-based YAML | |--------------------|-------------------------------------------| | result.access_token| ✗ (not supported) | | access_token | ✓ (top-level only) | What you should do: - If you control the API, return the tokens at the top level. - If not, you will need to implement a custom connector or wait for nested field support in config-based connectors. If you are using declarative connectors (advanced_auth), you can do: yaml path_in_oauth_response: - result - access_token But this is not available in the config-based OAuthAuthenticator YAML. --- In summary: You cannot use result.access_token in access_token_name. Airbyte expects just the property name, and it must be at the top level of the response. Nested fields are not supported in config-based YAML at this time [see documentation](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/OAuthAuthenticator).Hoang Tran Minh
07/31/2025, 6:35 AMkapa.ai
07/31/2025, 6:35 AMkapa.ai
07/31/2025, 6:36 AMDeclarativeSource), you can specify the path to nested fields in the OAuth response using the path_in_oauth_response property. However, the `OAuthAuthenticator`'s access_token_name and expires_in_name fields do not support dot notation (e.g., result.access_token) for nested fields. They only support top-level keys in the response. This means your current configuration with access_token_name: result.access_token and expires_in_name: result.expires_in will not work as intended. What the documentation says: - For config-based connectors, only top-level keys are supported for access_token_name and similar fields. Nested fields are not supported via dot notation or path arrays in the OAuthAuthenticator YAML configuration [see reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/OAuthAuthenticator). - For declarative connectors, you can use path_in_oauth_response to specify the path to a nested field, but this is only available in the `advanced_auth`/`oauth_config_specification` block, not in the OAuthAuthenticator block. Example from documentation: yaml access_token: type: string path_in_connector_config: - access_token path_in_oauth_response: - result - access_token This is only available in the advanced_auth block, not in the OAuthAuthenticator block of the HttpRequester definition [see example](https://docs.airbyte.com/platform/next/connector-development/config-based/advanced-topics/oauth#case-c-oauth-flow-returns-the-access_token-and-the-refresh_token). What you can do: - If you control the API, modify the token refresh endpoint to return the tokens at the top level. - If you do not control the API and must use the declarative YAML, you cannot currently extract nested fields from the token refresh response using OAuthAuthenticator in the HttpRequester block. Summary: You cannot extract nested fields from the token refresh endpoint response using access_token_name: result.access_token in the OAuthAuthenticator block. Only top-level keys are supported. If you need to extract nested fields, you must use the advanced_auth block with path_in_oauth_response, which is not available in the OAuthAuthenticator block of the declarative YAML as per the current documentation [see documentation](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/OAuthAuthenticator). If you need this functionality, you may need to: - Request a change to the API to return tokens at the top level, or - Wait for Airbyte to support nested field extraction in the OAuthAuthenticator block, or - Implement a custom connector in Python. References: - [Declarative OAuth 2.0 - Case C Example](https://docs.airbyte.com/platform/next/connector-development/config-based/advanced-topics/oauth#case-c-oauth-flow-returns-the-access_token-and-the-refresh_token) - [OAuthAuthenticator Reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/OAuthAuthenticator)Hoang Tran Minh
07/31/2025, 8:09 AMSomething went wrong in the connector. See the logs for more details. - Traceback (most recent call last): File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 133, in read yield from self._read_stream( File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 232, in _read_stream for record_data_or_message in record_iterator: File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/streams/core.py", line 185, in read for record_data_or_message in records: File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/declarative_stream.py", line 136, in read_records yield from self.retriever.read_records(self.get_json_schema(), stream_slice) File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 370, in read_records yield from self._read_single_page(record_generator, stream_state, _slice) File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 317, in _read_single_page response = self._fetch_next_page(stream_state, stream_slice) File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 484, in _fetch_next_page return self.requester.send_request( File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py", line 305, in send_request request, response = self._http_client.send_request( File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/streams/http/http_client.py", line 378, in send_request request: requests.PreparedRequest = self._create_prepared_request( File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/streams/http/http_client.py", line 172, in _create_prepared_request raise RequestBodyException( airbyte_cdk.sources.streams.http.exceptions.RequestBodyException: At the same time only one of the 'request_body_data' and 'request_body_json' functions can return data
ERROR
None - Traceback (most recent call last): File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/connector_builder/message_grouper.py", line 302, in _read_stream yield from AirbyteEntrypoint(source).read(source.spec(self.logger), config, configured_catalog, state) File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 166, in read for message in self.source.read(self.logger, config, catalog, state): File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 165, in read yield from super().read(logger, config, catalog, state) File "/home/airbyte/.pyenv/versions/3.9.19/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 186, in read raise AirbyteTracedException(message=error_message, failure_type=FailureType.config_error) airbyte_cdk.utils.traced_exception.AirbyteTracedException: Nonekapa.ai
07/31/2025, 8:10 AMkapa.ai
07/31/2025, 8:10 AMRequestBodyException: At the same time only one of the 'request_body_data' and 'request_body_json' functions can return data means that your connector is configured to send both request_body_data and request_body_json in the same request, which is not allowed in Airbyte. You must use only one of these options per request. In your YAML, you have: yaml request_body_data: |- { "keyword": "", "pageable": { "page": 1, "page_size": 10, "sort": [ { "property": "id", "direction": "desc" } ] }, "filters": [ { "name": "", "value": {}, "operation": "" } ] } and your paginator is set to inject page and page_size into `body_json`: yaml page_size_option: type: RequestOption field_name: page_size inject_into: body_json page_token_option: type: RequestOption field_name: page inject_into: body_json This causes Airbyte to try to use both request_body_data and request_body_json at the same time, which is not supported. --- ## How to fix - If your API expects a JSON body, use only request_body_json (not request_body_data). - Move your request body definition from request_body_data to request_body_json. - Remove request_body_data from your YAML. Example fix: yaml request_body_json: keyword: "" pageable: page: 1 page_size: 10 sort: - property: id direction: desc filters: - name: "" value: {} operation: "" This will allow the paginator to inject the page and page_size values into the correct place in the JSON body. --- Summary: You cannot use both request_body_data and request_body_json in the same request. Use only request_body_json for JSON APIs, and remove request_body_data from your configuration. This should resolve the error you are seeing [see documentation](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider).Hoang Tran Minh
07/31/2025, 8:24 AMkapa.ai
07/31/2025, 8:24 AMHoang Tran Minh
07/31/2025, 8:24 AMkapa.ai
07/31/2025, 8:24 AMkapa.ai
07/31/2025, 8:24 AMjson { "sortExpression": "Id desc", "predicate": { "advanceSearchInfo": { "IsQDXPUBND": false, "DonViGop": false, "CurentMaDonVi": "T25", "CurentDonViId": "1046" } } } Follow these steps: 1. In the Connector Builder UI, go to your stream configuration. 2. Scroll to the Request Body section. 3. Select "JSON" as the body type (this is typically labeled as "Form encoded (key-value pairs)", "Plain text", or "JSON"—choose "JSON"). 4. Enter your JSON structure in the editor, using the key-value format. For your example, it should look like this: yaml request_body_json: sortExpression: "Id desc" predicate: advanceSearchInfo: IsQDXPUBND: false DonViGop: false CurentMaDonVi: "T25" CurentDonViId: "1046" In the UI, this is usually done by adding keys and nesting objects as needed. 5. Save your configuration. Notes: - If you need to inject dynamic values (e.g., from config or variables), you can use Jinja expressions in the values, such as {{ config['CurentMaDonVi'] }}. - Only use request_body_json for JSON bodies; do not use request_body_data at the same time, as only one can be active per request [see documentation](https://docs.airbyte.com/platform/1.6/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester). If you need to use the UI's form fields: - Add a key for sortExpression with value "Id desc". - Add a key for predicate, then within that, add a nested object for advanceSearchInfo with the appropriate fields and values. This approach is supported and recommended for JSON request bodies in the Airbyte Connector Builder UI [see YAML reference](https://docs.airbyte.com/platform/1.6/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester).Hoang Tran Minh
07/31/2025, 8:25 AMkapa.ai
07/31/2025, 8:25 AMkapa.ai
07/31/2025, 8:25 AMrequest_body_json field. According to the documentation, request_body_json can contain nested objects, and you can represent your JSON as nested key-value pairs in the UI [see YAML reference](https://docs.airbyte.com/platform/1.6/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester). How to do it: 1. In the Connector Builder UI, go to the section where you define the request body. 2. Select the option for JSON key-value pairs (this is typically labeled as "JSON" or "Key-value pairs (JSON)"). 3. Enter your structure as nested keys, like this: - Key: sortExpression Value: Id desc - Key: predicate Value: (object) - Key: advanceSearchInfo Value: (object) - Key: IsQDXPUBND Value: false - Key: DonViGop Value: false - Key: CurentMaDonVi Value: T25 - Key: CurentDonViId Value: 1046 In YAML (for reference, but the UI will use a form): yaml request_body_json: sortExpression: "Id desc" predicate: advanceSearchInfo: IsQDXPUBND: false DonViGop: false CurentMaDonVi: "T25" CurentDonViId: "1046" Summary: In the UI, you will add each key and, for nested objects, add sub-keys as children. This will result in the correct JSON body being sent in your requests. The Airbyte documentation confirms that nested objects are supported in request_body_json using the key-value editor in the Connector Builder UI [see reference](https://docs.airbyte.com/platform/1.6/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester).Hoang Tran Minh
07/31/2025, 8:30 AMsortExpression
Value: Id desc
- Key: predicate
Value: (object)
- Key: advanceSearchInfo
Value: (object)
- Key: IsQDXPUBND
Value: false
- Key: DonViGop
Value: false
- Key: CurentMaDonVi
Value: T25
- Key: CurentDonViId
Value: 1046kapa.ai
07/31/2025, 8:30 AMkapa.ai
07/31/2025, 8:30 AMjson { "sortExpression": "Id desc", "predicate": { "advanceSearchInfo": { "IsQDXPUBND": false, "DonViGop": false, "CurentMaDonVi": "T25", "CurentDonViId": "1046" } } } In the UI, you would do the following: - Add a key called sortExpression with the value Id desc. - Add a key called predicate, and for its value, you add another key called advanceSearchInfo. - Under advanceSearchInfo, you add the keys IsQDXPUBND, DonViGop, CurentMaDonVi, and CurentDonViId with their respective values. This approach is supported by Airbyte's request_body_json, which allows for nested objects in the request body, as described in the documentation. The UI will typically let you add keys and, for object values, expand them to add sub-keys, matching the nested structure of your JSON body [see documentation](https://docs.airbyte.com/platform/1.6/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester). If the UI does not support this directly, you can always use the YAML editor to input the nested structure as shown above.Hoang Tran Minh
07/31/2025, 8:35 AMadvanceSearchInfo, you add the keys IsQDXPUBND, DonViGop, CurentMaDonVi, and CurentDonViId with their respective values."? There's no option to add anything under advanceSearchInfokapa.ai
07/31/2025, 8:35 AMkapa.ai
07/31/2025, 8:35 AMadvanceSearchInfo. The documentation does confirm that request_body_json supports nested objects in YAML or JSON, for example: yaml request_body_json: predicate: advanceSearchInfo: IsQDXPUBND: false DonViGop: false CurentMaDonVi: "T25" CurentDonViId: "1046" But it does not specify exactly how the UI allows you to add these nested keys—whether you can do it directly in the UI as nested fields, or if you need to switch to a raw JSON/YAML editor to input the structure manually ([see documentation](https://docs.airbyte.com/platform/1.6/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester)). In summary: If the UI does not provide an option to add sub-keys under advanceSearchInfo, you may need to use the raw JSON or YAML editor to input the nested structure directly. The knowledge sources do not contain enough information to confirm the exact UI behavior for adding nested keys under an object in the key-value editor.Hoang Tran Minh
08/01/2025, 4:00 AMkapa.ai
08/01/2025, 4:00 AMHoang Tran Minh
08/01/2025, 5:20 AMkapa.ai
08/01/2025, 5:20 AMkapa.ai
08/01/2025, 5:20 AMsftp://...). Instead, you provide the SFTP connection details (host, port, username, password) and specify the file path as it appears on the SFTP server. Important notes from the documentation: - For SFTP, you need to provide the host address, port, username, password (or key), and the file path. - The file path should be specified as it is accessible from the SFTP server, and for Windows servers, you should use forward slashes (/) instead of backslashes (\) in the file path, as SFTP expects Unix-style paths ([see SFTP reference](https://docs.airbyte.com/integrations/sources/sftp#reference)). Given your file location: C:\Users\Administrator\Test_CSV.csv You should write the file path as: /Users/Administrator/Test_CSV.csv Summary of your configuration: - Host: 10.0.0.100 - Port: 22 - Username: Administrator - Password: Ab@123456 - File Path: /Users/Administrator/Test_CSV.csv You do not need to construct a URL; just enter these values in the respective fields in the Airbyte UI for the SFTP source connector. The knowledge sources do not mention using a URL field for SFTP; instead, they specify entering the file path and connection details separately ([see SFTP setup guide](https://docs.airbyte.com/integrations/sources/sftp#sftp)). If you are using the File source connector with SFTP as the storage provider, select "SFTP" as the provider and enter the above details in the configuration fields ([see File source storage providers](https://docs.airbyte.com/integrations/sources/file#storage-providers)).Hoang Tran Minh
08/01/2025, 5:22 AMkapa.ai
08/01/2025, 5:22 AMkapa.ai
08/01/2025, 5:22 AMsftp://...). Instead, it instructs you to enter the file path as it would be accessed via SFTP, using forward slashes. For your example, if your file is located at C:\Users\Administrator\Test_CSV.csv on the Windows server, you should enter the path as: /Users/Administrator/Test_CSV.csv So, in the Airbyte UI: - URL field: /Users/Administrator/Test_CSV.csv You do not need to include the host, port, or credentials in the URL field; those are entered in their respective fields in the UI. The knowledge sources do not mention using a full SFTP URL (such as `sftp://user:pass@host:port/path`), only the file path as shown above [see documentation](https://docs.airbyte.com/integrations/sources/file#step-3-complete-the-connector-setup). If you need to specify a folder, you can use the folder path (e.g., /Users/Administrator/). For a single file, use the full file path as above. If you encounter issues, please ensure your SFTP server is accessible and the path is correct. The documentation does not provide an example of a full SFTP URL for the File source connector, so if the UI requires a URL and does not accept just the path, the knowledge sources do not contain enough information to provide a different format.Hoang Tran Minh
08/01/2025, 5:24 AMkapa.ai
08/01/2025, 5:24 AMkapa.ai
08/01/2025, 5:24 AM/Users/Administrator/Test_CSV.csv). You do not need to include the protocol (sftp://) in the URL field—just the path itself. The error message you received (Failed to load sftp:///Users/Administrator/Test_CSV.csv) suggests that the connector is interpreting your input as a URL with the sftp:// protocol, but the documentation does not instruct you to use this format. Instead, it specifies to enter the file path only, not a full URL ([see File source setup guide](https://docs.airbyte.com/integrations/sources/file#step-3-complete-the-connector-setup)). What you should do: - In the URL field, enter: /Users/Administrator/Test_CSV.csv (Do not include sftp://.) - Make sure you have correctly filled out the SFTP connection details (host, port, username, password) in their respective fields. If you still receive an error, double-check: - The file path is correct and accessible from the SFTP root directory. - The SFTP user has permission to access the file. - The SFTP server is running and reachable from the Airbyte instance. The knowledge sources do not provide an example of using a full SFTP URL (like `sftp://user:pass@host:port/path`) for the File source connector, and instead consistently show only the file path being used ([see documentation](https://docs.airbyte.com/integrations/sources/file#step-3-complete-the-connector-setup)). If the error persists, it may be due to SFTP server permissions or path issues, not the URL format itself.Hoang Tran Minh
08/01/2025, 5:26 AMkapa.ai
08/01/2025, 5:26 AMkapa.ai
08/01/2025, 5:26 AM/Users/Administrator/Test_CSV.csv in the URL field. Based on the official Airbyte documentation, this is the correct approach for the File source connector when using SFTP as the storage provider: you should enter the file path as it appears on the SFTP server, using forward slashes, and not include the protocol or host in the URL field. The host, port, username, and password are provided in their own fields [see documentation](https://docs.airbyte.com/integrations/sources/file#step-3-complete-the-connector-setup). However, since you are still seeing an error (Failed to load sftp:///Users/Administrator/Test_CSV.csv. You could have provided an invalid URL, please verify it: OSError('Failure')), this suggests one of the following issues: - The file path may not be correct relative to the SFTP root directory. On many SFTP servers, the root directory for a user is not the system root (C:\), but rather the user's home directory or a specific folder. Try adjusting the path to remove the leading slash or use a relative path, such as Users/Administrator/Test_CSV.csv or just Test_CSV.csv if the file is in the home directory of the SFTP user. - Permissions or access issues. The SFTP user (Administrator) may not have permission to access the specified path or file. - SFTP server configuration. Some SFTP servers restrict access to certain directories, or the SFTP root may be mapped differently than the Windows file system path. The knowledge sources do not provide more detailed troubleshooting steps for this specific error or for SFTP on Windows servers. If adjusting the path does not resolve the issue, you may need to check your SFTP server's configuration or try connecting to the server using an SFTP client (like WinSCP or FileZilla) with the same credentials to verify the correct path from the SFTP root. Summary: You are using the correct format for the URL field according to the documentation. The error likely relates to the file path relative to the SFTP root, permissions, or SFTP server configuration, but the knowledge sources do not provide further details for this specific scenario.Hoang Tran Minh
08/01/2025, 5:28 AMkapa.ai
08/01/2025, 5:28 AMkapa.ai
08/01/2025, 5:28 AMsftp://) or host information in this field—just the file path itself ([see documentation](https://docs.airbyte.com/integrations/sources/file#step-3-complete-the-connector-setup)). The error message you received (FileNotFoundError(2, 'No such file')) when using "Test_CSV.csv" as the URL indicates that Airbyte could not find the file at that path on the SFTP server. This suggests that the file path you provided does not match the file's actual location relative to the SFTP root directory for the user you are authenticating as. The knowledge sources do not provide specific troubleshooting steps for SFTP on Windows or for determining the SFTP root directory. They also do not specify how to handle Windows-style paths or SFTP server configurations that may affect the root directory. If both /Users/Administrator/Test_CSV.csv and Test_CSV.csv do not work, it is likely that the file is not located at those paths relative to the SFTP root, or there may be a permissions issue. Summary: - The correct approach is to enter the file path as it appears from the SFTP root, using forward slashes, in the URL field. - If you receive a "No such file" error, the file path may be incorrect relative to the SFTP root, or there may be a permissions or configuration issue on the SFTP server. - The knowledge sources do not contain enough information to provide further troubleshooting steps for this specific scenario.Hoang Tran Minh
08/15/2025, 4:46 AMkapa.ai
08/15/2025, 4:46 AMkapa.ai
08/15/2025, 4:47 AM["test", "test1", "test2"]), not a JSON object or an array of objects. Airbyte expects the file to contain either a JSON object or an array of objects (e.g., [{"field": "value"}, ...]) to infer a schema. According to the documentation, when using the File source connector (including with Google Drive), Airbyte needs to infer a schema from the file's structure. If the file is just a flat array of strings, there are no field names or object structure for Airbyte to use to generate a schema, so schema inference will fail or return nothing [see documentation](https://docs.airbyte.com/integrations/sources/file#file-formats). How to fix: Change your JSON file to an array of objects, for example: json [ {"value": "test"}, {"value": "test1"}, {"value": "test2"} ] This way, Airbyte can infer a schema with a field called value. The knowledge sources do not mention support for flat arrays of primitive types (like strings) for schema inference, only objects or arrays of objects. Summary: Airbyte cannot infer a schema from a JSON file that is just an array of strings. You need to provide a file with objects (with named fields) for schema inference to work.Hoang Tran Minh
08/22/2025, 7:38 AMkapa.ai
08/22/2025, 7:38 AMkapa.ai
08/22/2025, 7:38 AMPUT /workspaces/{workspaceId}/definitions/declarative_sources/{definitionId} This endpoint allows you to update a specific YAML source definition in your workspace. You will need your workspace ID and the definition ID of the connector you want to update. This API is available for custom connectors created with a Connector Builder YAML manifest, but not for modifying Airbyte’s public connector definitions [see release notes](https://docs.airbyte.com/release_notes/v-1.6#create-custom-connectors-from-yaml-or-docker-images-using-the-api-and-terraform). For more details and the full list of endpoints, refer to the [API reference documentation](https://reference.airbyte.com/reference/getting-started#/).Hoang Tran Minh
08/27/2025, 4:08 AMkapa.ai
08/27/2025, 4:08 AMkapa.ai
08/27/2025, 4:08 AMint, bigint, float, decimal, numeric, etc. in MSSQL are mapped to the Airbyte type number. - date, datetime, datetime2, smalldatetime are mapped to Airbyte types like date or timestamp. - String types (varchar, nvarchar, etc.) are mapped to string. - Complex types like geometry or geography are mapped to string as well. If a type is not recognized, it is coerced into a string. [See MSSQL data type mapping](https://docs.airbyte.com/integrations/sources/mssql#data-type-mapping) 2. Airbyte Types to Postgres Types: When writing to Postgres, Airbyte maps its internal types to the closest compatible Postgres types: - string → VARCHAR - number → DECIMAL - integer → BIGINT - boolean → BOOLEAN - object and array → JSONB - timestamp_with_timezone → TIMESTAMP WITH TIME ZONE - timestamp_without_timezone → TIMESTAMP - date → DATE [See Postgres schema map](https://docs.airbyte.com/integrations/destinations/postgres#schema-map) Key Points: - Airbyte attempts to preserve data fidelity, but if a type cannot be mapped directly, it may be stored as a string or JSONB. - Some special or complex types (like geometry) may lose fidelity and be stored as strings, which can result in data not being usable in its original form in the destination [see example](https://github.com/airbytehq/airbyte/issues/3199). - If a source column is not recognized or mapped, it may not appear in the destination at all [see forum post](https://discuss.airbyte.io/t/3587). Summary: Airbyte handles data type conversion by mapping source types to internal types, then to destination types. Most common types are mapped appropriately, but some complex or unrecognized types may be stored as strings or omitted if not mapped.Hoang Tran Minh
08/27/2025, 9:34 AMkapa.ai
08/27/2025, 9:34 AMkapa.ai
08/27/2025, 9:35 AMHoang Tran Minh
09/12/2025, 3:13 AMkapa.ai
09/12/2025, 3:13 AMkapa.ai
09/12/2025, 3:14 AMHoang Tran Minh
09/12/2025, 3:15 AMkapa.ai
09/12/2025, 3:15 AMkapa.ai
09/12/2025, 3:16 AMjobs, attempts, airbyte_metadata). [[Jobs DB](https://docs.airbyte.com/platform/understanding-airbyte/database-data-catalog#jobs-database); [Jobs DB next](https://docs.airbyte.com/platform/next/understanding-airbyte/database-data-catalog#jobs-database)] For file transfers, Airbyte writes file metadata to the destination you configure (e.g., as JSONL with fields like _airbyte_raw_id, _airbyte_data.file_name, _airbyte_file_path), not to the internal Jobs DB. [[Configure metadata](https://docs.airbyte.com/platform/using-airbyte/sync-files-and-records#configure-file-metadata); [Metadata sample](https://docs.airbyte.com/platform/using-airbyte/delivery-methods#configure-file-metadata)]Hoang Tran Minh
09/12/2025, 7:34 AMkapa.ai
09/12/2025, 7:34 AMkapa.ai
09/12/2025, 7:35 AMHoang Tran Minh
09/12/2025, 7:44 AM/api/v1/destinations/create?kapa.ai
09/12/2025, 7:44 AMkapa.ai
09/12/2025, 7:45 AMjson { "name": "Analytics Postgres", "workspaceId": "2155ae5a-de39-4808-af6a-16fe7b8b4ed2", "configuration": { "airbyte_destination_name": "postgres", "host": "db.example.com", "port": 5432, "database": "analytics", "username": "airbyte", "password": "******", "schema": "public", "ssl": true, "ssl_mode": { "mode": "prefer" }, "drop_cascade": true } } [[createDestination](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml); [Postgres reference](https://docs.airbyte.com/integrations/destinations/postgres#reference)] Example: Redshift destination json { "name": "DW Redshift", "workspaceId": "2155ae5a-de39-4808-af6a-16fe7b8b4ed2", "configuration": { "airbyte_destination_name": "redshift", "host": "redshift-cluster.xxxx.aws-region.redshift.amazonaws.com", "port": 5439, "database": "dev", "username": "airbyte", "password": "******", "schema": "analytics", "drop_cascade": true, "uploading_method": { "method": "S3_STAGING", "s3_bucket_name": "my-bucket", "s3_bucket_region": "us-east-1", "access_key_id": "AKIA...", "secret_access_key": "..." } } } [[createDestination](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml); [Redshift reference](https://docs.airbyte.com/integrations/destinations/redshift#reference)] Notes: - Use the destination-specific config schema; drop_cascade is supported by several SQL destinations (e.g., Postgres, Redshift). [[Postgres reference](https://docs.airbyte.com/integrations/destinations/postgres#reference); [Redshift reference](https://docs.airbyte.com/integrations/destinations/redshift#reference)] - If you’re using the legacy OSS API route /api/v1/destinations/create, the concept is the same: put "drop_cascade": true in the configuration object for that destination. The provided spec above documents the current public POST /destinations endpoint. [[createDestination](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml)]Hoang Tran Minh
09/16/2025, 2:49 AMapi/v1/connections/last_job_per_stream It retturns an empty array?kapa.ai
09/16/2025, 2:50 AMkapa.ai
09/16/2025, 2:50 AMapi/v1/connections/last_job_per_stream endpoint, especially in relation to file sources or why it might return an empty array. There is no documentation or example in the provided sources that explains this specific API response or its expected behavior for file sources.Hoang Tran Minh
09/16/2025, 2:54 AMconnections/last_job_per_stream exists? Then how do I get a stream of a job connection through API?kapa.ai
09/16/2025, 2:54 AMkapa.ai
09/16/2025, 2:54 AMconnections/last_job_per_stream. The official Airbyte API documentation and references do not list this endpoint, and there is no information about its existence or usage. To get job and stream information for a connection via the API: - You can use the /jobs endpoint to list jobs for a specific connection by passing the connectionId as a query parameter. This will return job details, including job status and metadata, but not per-stream details directly. Example: GET /jobs?connectionId=<your-connection-id> This returns a list of jobs for the given connection, including job IDs, statuses, and other metadata [see OpenAPI spec](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml). - The knowledge sources do not describe an API endpoint that returns per-stream job information directly. If you need stream-level details, you may need to inspect the job logs or metadata from the returned jobs, but this is not explicitly documented. Summary: There is no documented connections/last_job_per_stream endpoint. To get job information for a connection, use the /jobs endpoint with the connectionId parameter. The knowledge sources do not provide a way to get per-stream job information directly via the API.Hoang Tran Minh
09/16/2025, 2:58 AMkapa.ai
09/16/2025, 2:58 AMkapa.ai
09/16/2025, 2:58 AMGET /connections/{connectionId} This endpoint returns the connection details, and within the response, you will find the configurations.streams array, which contains information about each stream configured for that connection. The stream info includes the stream name, sync mode, cursor field, and primary key, but not detailed schema information ([see OpenAPI spec](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml)). For detailed schema information about streams available for a source/destination pair, you can use: GET /streams?sourceId={sourceId}&destinationId={destinationId} This returns the available stream properties, including stream names, supported sync modes, and schema fields ([see OpenAPI spec](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml)). Summary: - To get the streams configured for a connection: GET /connections/{connectionId} - To get available stream properties for a source/destination: GET /streams?sourceId={sourceId}&destinationId={destinationId} If you need more granular or per-job/per-stream sync status, the knowledge sources do not provide an endpoint for that.Hoang Tran Minh
09/16/2025, 3:01 AMkapa.ai
09/16/2025, 3:01 AMkapa.ai
09/16/2025, 3:01 AMGET /connections/{connectionId} This endpoint returns the details of the specified connection, including the configurations.streams array, which contains information about each stream configured for that connection (such as stream name, sync mode, cursor field, and primary key). This is the documented way to retrieve the current stream configuration for a connection [see OpenAPI spec](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml). If you need detailed schema information for streams, you can use: GET /streams?sourceId={sourceId}&destinationId={destinationId} This will provide available stream properties for the given source and destination. The knowledge sources do not mention any other endpoint for retrieving the current stream info of a connection.Hoang Tran Minh
09/16/2025, 4:51 AM/v1/jobs?connectionId=365ced2c-fdd7-491b-b73d-e864a6ddaec6 it returns this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#000000">
<meta name="description"
content="Airbyte is the turnkey open-source data integration platform that syncs data from applications, APIs and databases to warehouses.">
<meta name="airbyte:sec-token" content="c82db11b-64df-413d-aba8-ee66b99c046f">
<meta name="airbyte:version" content=0.63.13>
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/manifest.json">
<link rel="stylesheet" href="/index.css">
<title>Airbyte</title>
<script type="module" crossorigin src="/assets/main-dxqyhnd5.js"></script>
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-cm6ok5jwih.js">
<link rel="modulepreload" crossorigin href="/assets/broadcast-channel-d2aggzsa1i.js">
<body>
<noscript>
<img src="/logo.png" alt="" width="90" height="94">
<div class="card">You need to enable JavaScript to run this app.</div>
</noscript>
<div id="root"></div>
</body>
</html>kapa.ai
09/16/2025, 4:51 AMkapa.ai
09/16/2025, 4:51 AM/v1/jobs?connectionId=365ced2c-fdd7-491b-b73d-e864a6ddaec6 and receive an HTML page (such as the Airbyte UI or a "You need to enable JavaScript to run this app" message) instead of a JSON response, it usually means that your request is being routed to the Airbyte web frontend rather than the backend API server. Possible reasons for this behavior, based on the knowledge sources: - Incorrect Port or Path: You might be sending the request to the wrong port or path that serves the Airbyte UI, not the API. For example, the UI is typically served on port 8000, while the API might be on a different port or path. - Proxy or Routing Misconfiguration: If you are running Airbyte behind a proxy or using Docker/Kubernetes, the proxy might not be routing /v1/jobs to the API server correctly. This has been reported as a common issue when the API is not exposed or routed as expected, resulting in HTML responses instead of JSON ([see related issues](https://github.com/airbytehq/airbyte/issues/33742)). - API Not Enabled or Not Exposed: In some Airbyte deployments, the public API is only available in certain editions or must be explicitly enabled and exposed ([see API access docs](https://docs.airbyte.com/platform/enterprise-setup/api-access-config)). What you can do: - Double-check the URL, port, and path you are using for the API request. Make sure you are targeting the backend API, not the UI. - If you are using a proxy or custom deployment, verify that requests to /v1/jobs are routed to the Airbyte API server, not the frontend. - Consult your deployment's documentation to ensure the API is enabled and accessible. The knowledge sources do not provide more specific troubleshooting steps for this scenario, but misrouting to the UI instead of the API is a common cause of receiving HTML instead of JSON from an API endpoint ([see related issue](https://github.com/airbytehq/airbyte/issues/33742)).Hoang Tran Minh
09/16/2025, 5:11 AM/v1/jobs are routed to the Airbyte API server and not the frontend?kapa.ai
09/16/2025, 5:11 AMkapa.ai
09/16/2025, 5:11 AM/v1/jobs are routed to the Airbyte API server and not the frontend in a Docker custom deployment, you should: 1. Check the port and service you are targeting: The Airbyte UI (frontend) and the API server may run on different ports or services. If you send API requests to the same port as the UI (commonly 8000), you may get HTML responses instead of JSON. Make sure you are sending requests to the correct port where the API server is listening. The knowledge sources highlight that sending requests to the wrong port or service is a common cause of this issue [see related issue](https://github.com/airbytehq/airbyte/issues/33742). 2. Review your Docker Compose or deployment configuration: Ensure that the API server container is exposed and accessible, and that your proxy (if any) is routing /v1/jobs to the API server, not the webapp. Misconfiguration here can cause requests to be routed to the frontend, resulting in HTML responses [see related issue](https://github.com/airbytehq/airbyte/issues/33742). 3. Test the endpoint directly: Try sending a request (e.g., with curl) to the API server's port and compare the response. If you get a JSON response, you are hitting the API server. If you get HTML, you are hitting the frontend. The knowledge sources do not provide a step-by-step guide for this verification, but they do confirm that routing issues between the API and frontend are a common cause of receiving HTML instead of JSON from API endpoints. If you continue to receive HTML, double-check your network and proxy configuration to ensure correct routing.Hoang Tran Minh
09/16/2025, 5:29 AMkapa.ai
09/16/2025, 5:29 AMkapa.ai
09/16/2025, 5:29 AM/v1/jobs API in Airbyte, you can retrieve job information related to your connections. According to the Airbyte public API specification, the endpoint is used as follows: Endpoint: GET /jobs Query Parameters: - connectionId (string, optional): Filter jobs by a specific connection. - limit (integer, optional): Limit the number of jobs returned (default is 20, max is 100). - offset (integer, optional): Offset for pagination (default is 0). - jobType (string, optional): Filter by job type (sync, reset). - workspaceIds (array of strings, optional): Filter jobs by workspace IDs. - status (string, optional): Filter by job status (pending, running, incomplete, failed, succeeded, cancelled). - createdAtStart, createdAtEnd, updatedAtStart, updatedAtEnd (string, optional): Filter by creation or update date. - orderBy (string, optional): Field and method for ordering. Example Request: http GET /jobs?connectionId=<your-connection-id>&limit=10 Response: A successful response returns a JSON object with a data array, where each item contains job details such as jobId, status, jobType, startTime, connectionId, and other metadata. Note: - This endpoint does not require authentication by default, but your deployment may require it depending on your configuration. - Make sure you are sending the request to the correct API server endpoint, not the Airbyte UI, to avoid receiving an HTML response instead of JSON ([see OpenAPI spec](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml)). If you receive an HTML response, it likely means your request is being routed to the frontend instead of the API server. Double-check your deployment and routing configuration to ensure you are targeting the correct service.Hoang Tran Minh
09/16/2025, 5:30 AMkapa.ai
09/16/2025, 5:30 AMkapa.ai
09/16/2025, 5:31 AM{"message":"Unauthorized", ...} indicates that your request to the /v1/jobs API endpoint is missing the required authentication. According to the Airbyte documentation, you need to include a valid access token (Bearer token) in your API request headers to authenticate. The process to obtain this token depends on your Airbyte deployment (Cloud or Self-Managed): 1. Obtain an Access Token: - For Self-Managed, you must first create an application in the Airbyte UI to get a client_id and client_secret. - Use these credentials to request an access token from the API: http POST <YOUR_WEBAPP_URL>/api/v1/applications/token Content-Type: application/json { "client_id": "<your_client_id>", "client_secret": "<your_client_secret>" } - The response will include an access_token (Bearer token) [see documentation](https://docs.airbyte.com/platform/1.7/using-airbyte/configuring-api-access). 2. Call the /v1/jobs API with the Access Token: - Add the following header to your curl request: -H "Authorization: Bearer <your_access_token>" - Example: bash curl -X GET "<YOUR_WEBAPP_URL>/api/public/v1/jobs?connectionId=<your-connection-id>" \ -H "Authorization: Bearer <your_access_token>" Summary: You are receiving "Unauthorized" because your request is missing the required Bearer token. Obtain an access token as described above and include it in your API request header [see documentation](https://docs.airbyte.com/platform/1.7/using-airbyte/configuring-api-access).Hoang Tran Minh
09/18/2025, 10:06 AMkapa.ai
09/18/2025, 10:06 AMkapa.ai
09/18/2025, 10:06 AMupdated_at timestamp). If the source data hasn't changed, no records will be emitted or transferred, and the destination table will remain unchanged ([see tutorial](https://airbyte.com/tutorials/incremental-data-synchronization#step-7)). Additionally, if the cursor field is not properly updated when records are modified in the source, those changes will not be detected by Airbyte and thus not transferred. The incremental sync relies on the cursor field to identify new or changed records. If the cursor field (e.g., updated_at) is not updated when a record changes, Airbyte will not pick up the change ([see known limitations](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)). Summary: - No data is transferred if there are no new or updated records since the last sync. - Ensure the cursor field is correctly configured and updated in your source data. - This is expected behavior for Incremental Append sync mode. If you want to transfer all data regardless of changes, consider using Full Refresh sync mode instead.kapa.ai
09/22/2025, 4:58 AMkapa.ai
09/22/2025, 4:58 AMHoang Tran Minh
09/22/2025, 5:00 AMkapa.ai
09/22/2025, 5:00 AMkapa.ai
09/22/2025, 5:01 AM