Using abctl, when adding a custom destination I r...
# ask-ai
d
Using abctl, when adding a custom destination I receive an error in the UI: "Fetching connector failed. Try again".
k
Based on the information in the knowledge sources, the error "Fetching connector failed. Try again" when adding a custom destination in Airbyte (using abctl) is often related to issues with loading the custom connector's Docker image into the Kubernetes cluster managed by kind (which is the default for abctl deployments). If the connector image is not properly loaded into the kind cluster, Airbyte cannot fetch the connector, resulting in errors like the one you are seeing. The recommended troubleshooting step is to manually load your custom connector Docker image into the kind cluster using the following command:
Copy code
bash kind load docker-image <image-name>:<image-tag> -n airbyte-abctl
For example, if your custom connector image is
airbyte/destination-custom:1
, you would run:
Copy code
bash kind load docker-image airbyte/destination-custom:1 -n airbyte-abctl
This ensures that the Airbyte pods running in the kind cluster can access and use your custom connector image. If you continue to see errors after this step, please provide the specific exception message from the airbyte-abctl-server pod logs for further diagnosis, as the knowledge sources do not contain enough information to address other potential root causes without the exact log details. For more details, see the official documentation: [Loading connector docker containers into kind](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#loading-connector-docker-containers-into-kind)
d
@kapa.ai When I look at the logs for the airbyte-abctl-server pod, I see this exception: 2025-10-07 130550,978 [io-executor-thread-10] ERROR i.a.c.s.e.h.UncaughtExceptionHandler(handle):33 - Uncaught exception java.lang.NullPointerException: Cannot invoke "java.net.URI.toString()" because the return value of "io.airbyte.protocol.models.v0.ConnectorSpecification.getDocumentationUrl()" is null at io.airbyte.commons.server.handlers.ConnectorDefinitionSpecificationHandler.getDestinationSpecificationRead(ConnectorDefinitionSpecificationHandler.kt:204) at io.airbyte.commons.server.handlers.ConnectorDefinitionSpecificationHandler.getDestinationSpecification(ConnectorDefinitionSpecificationHandler.kt:150) at io.airbyte.server.apis.controllers.DestinationDefinitionSpecificationApiController.getDestinationDefinitionSpecification$lambda$0(DestinationDefinitionSpecificationApiController.kt:34) at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.kt:32) at io.airbyte.server.apis.controllers.DestinationDefinitionSpecificationApiController.getDestinationDefinitionSpecification(DestinationDefinitionSpecificationApiController.kt:33) at io.airbyte.server.apis.controllers.$DestinationDefinitionSpecificationApiController$Definition$Exec.dispatch(Unknown Source) at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461) at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4438) at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:272) at io.micronaut.web.router.DefaultUriRouteMatch.execute(DefaultUriRouteMatch.java:38) at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:465) at io.micronaut.http.server.RouteExecutor.lambda$callRoute$5(RouteExecutor.java:442) at io.micronaut.core.execution.ExecutionFlow.lambda$async$0(ExecutionFlow.java:92) at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:232) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583)
k
A message from kapa.ai
The exception you are seeing:
Copy code
java.lang.NullPointerException: Cannot invoke "<java.net.URI>.toString()" because the return value of "io.airbyte.protocol.models.v0.ConnectorSpecification.getDocumentationUrl()" is null
indicates that your custom destination connector's specification (
spec.json
or the output of the
spec
command) is missing the
documentationUrl
field, or it is set to
null
. Airbyte expects this field to be present and non-null when processing the connector specification. According to the Airbyte protocol documentation,
documentationUrl
is an optional field in the connector specification, but the code in your Airbyte version appears to assume it is always present and non-null, leading to a
NullPointerException
if it is missing or set to
null
in your connector's spec output. Here is the relevant part of the protocol:
Copy code
yaml documentationUrl:   type: string   format: uri
([Airbyte Protocol: Actor Specification](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol#actor-specification)) How to fix: Update your custom connector so that its
spec
command outputs a valid
documentationUrl
field (it can be any valid URL, such as your connector's documentation or even a placeholder like
https://example.com
). For example:
Copy code
json {   "documentationUrl": "https://example.com",   ... }
After updating your connector's specification to include a non-null
documentationUrl
, reload the connector image into your kind cluster and try adding the destination again. If you continue to encounter issues, ensure that all required and optional fields in your connector's specification are set according to the [Airbyte protocol documentation](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol#actor-specification). If you need more details on the connector specification, refer to the documentation linked above. If the problem persists after making this change, please provide the updated logs or connector spec for further troubleshooting.