<@U04S8PLJWMT> I am developing a custom source con...
# ask-ai
m
@kapa.ai I am developing a custom source connector, when I test the discover method in my local environment, I see it runs without error. But after I deploy the connector's docker image to Airbyte open source, I get discovery failed error when connecting the source to a destination. Why?
k
There are several reasons why your custom source connector's discover method might work locally but fail after deploying the Docker image to Airbyte OSS: 1. Docker Image Not Loaded into the Cluster If you are running Airbyte in a Kubernetes-in-Docker (kind) environment (the default for
abctl
), you must load your custom connector's Docker image into the kind cluster. If you skip this step, Airbyte will not be able to find and run your connector, resulting in discovery failures. Use the following command to load your image:
Copy code
bash    kind load docker-image <image-name>:<image-tag> -n airbyte-abctl
For example:
Copy code
bash    kind load docker-image airbyte/source-custom:1 -n airbyte-abctl
[Loading connector docker containers into kind](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#loading-connector-docker-containers-into-kind) 2. Connector Specification Caching Airbyte caches connector specifications for performance. If you update your connector's spec, you need to clear this cache by re-saving the connector version in the UI (even if the version is unchanged) to ensure Airbyte picks up the latest changes. [Developing Locally - Connector Specification Caching](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#connector-specification-caching) 3. Schema or Catalog Issues If your discover method does not return a valid catalog (e.g., missing required fields like
supported_sync_modes
or
properties
in the stream schema), Airbyte will fail during discovery. This is a common issue with custom or generated connectors. Example error:
Copy code
ValidationError: 1 validation error for AirbyteStream    supported_sync_modes      field required (type=value_error.missing)
[Error of Generated Python Source Connector](https://discuss.airbyte.io/t/2940) 4. Differences in Local vs. Airbyte Environment Your local environment may have different dependencies, environment variables, or file paths than the Airbyte runtime. Make sure your Docker image contains all necessary dependencies and is built correctly. 5. Internal Server Errors or Null Schema If you see errors like
No properties node in stream schema
or
jsonSchemaNode is null
, it usually means your discover method is not returning a valid JSON schema for streams. Double-check your discover output for compliance with Airbyte's expected schema format. [Forum: No properties node in stream schema](https://discuss.airbyte.io/t/4008) [Forum: jsonSchemaNode is null](https://discuss.airbyte.io/t/1230) Summary: The most common cause is the Docker image not being loaded into the kind cluster, or the discover method returning an invalid or incomplete schema. Double-check both, and ensure your connector's output matches Airbyte's requirements. If the problem persists, review the Airbyte server logs for more specific error messages.