Hello, I am facing issue while using the custom de...
# replication-troubleshooting
p
Hello, I am facing issue while using the custom decoder component. I have setup the custom component in builder UI and using it for one of the stream, and when I run this stream, its working fine in connector builder UI 2.0, but the rest of the streams which are not using the custom component, getting error while running them in builder UI. Could not load module
source_declarative_manifest.components
. I have checked for
source_declarative_manifest
traces in the other streams but its not the case. Not sure why this error is coming. How can I fix this issue? any leads would be highly appreciated. Thanks
k
The error message “Could not load module `source_declarative_manifest.components`” typically indicates that Airbyte is unable to find or import the Python module where your custom component (such as a custom decoder) is defined. This can happen even for streams not directly referencing the custom component if the connector’s configuration or environment is not set up correctly. Based on the knowledge sources and a similar issue reported for another connector, here are some key points and troubleshooting steps: 1. Custom Components Are Experimental and Require Enabling Custom components (including custom decoders) are considered UNSAFE and EXPERIMENTAL. You must explicitly enable them in your Airbyte deployment by setting the
AIRBYTE_ENABLE_UNSAFE_CODE
environment variable to
"true"
for both the
workload-launcher
and
connector-builder-server
services. This is required for all streams in a connector that references any custom component, even if only one stream uses it. If this is not enabled, module loading errors can occur across the connector, not just for the stream using the custom component. See the detailed instructions for enabling this in your deployment method (abctl or Helm) in the documentation: [How to enable Custom Components](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/custom-components#how-to-enable-custom-components) 2. Module Import Issues The error can also occur if the Python environment where Airbyte runs does not have the custom component’s code available, or if there are missing dependencies. For example, in a similar issue, a missing dependency (
pendulum
) caused the module import to fail for all streams, not just the one using the custom component. [Github Issue: Could not load module
source_declarative_manifest.components
](https://github.com/airbytehq/airbyte/issues/55693) 3. Connector Configuration Ensure that your YAML configuration references the custom component using the correct fully qualified class name (e.g.,
source_<name>.<package>.<class_name>
), and that the Python file is present and accessible in the connector’s codebase. [YAML Reference for CustomDecoder](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/CustomDecoder) 4. Builder UI Limitation When using the Connector Builder UI, you must switch to the YAML editor to configure custom components. The visual interface does not support this. [How to use Custom Components](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/custom-components#how-to-use-custom-components) What you should do: - Double-check that the custom component’s code and all its dependencies are present and importable in your Airbyte environment. - Make sure you have enabled custom components as described above. - If you are using any third-party libraries in your custom component, ensure they are installed in the connector’s environment. - If the problem persists, review the logs for missing dependencies or import errors, as these can affect all streams in the connector, not just those using the custom component. If you follow these steps and the issue remains, please provide more details about your deployment method and connector configuration for further troubleshooting.
p
@kapa.ai share a reference connector where custom decoder is being used
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain a reference to a specific Airbyte connector that uses a custom decoder. The documentation explains how to implement and configure a custom decoder, including an example class name (
source_amazon_ads.components.GzipJsonlDecoder
), but it does not point to a real, open-source connector repository or manifest that demonstrates this in practice. The example is illustrative only and not a reference to an actual connector implementation [CustomDecoder YAML Reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/CustomDecoder). If you need a real-world example, you may need to search the Airbyte GitHub repository or community forums for connectors that implement custom decoders.