<@U04S8PLJWMT> how can I dig into the error while ...
# ask-ai
s
@kapa.ai how can I dig into the error while building custom source connector to MS Intune ? it always says "Could not validate your connector as specified: An unknown error has occurred If the error persists, please contact Airbyte support."
k
When building a custom source connector (such as for MS Intune) and encountering the generic error "Could not validate your connector as specified: An unknown error has occurred," it can be challenging to debug due to the lack of detailed feedback in the UI. Here are some steps and considerations based on similar issues reported in the Airbyte community: 1. Check the Connector Spec Format Ensure your connector's spec file is correctly formatted. For example, the
properties
field in your spec should be a dictionary, not a list. Incorrect formats can cause cryptic errors during validation, even if the
spec
command works locally. Double-check your JSON schema structure, especially under
connection_specification
and
properties
fields. A similar issue was resolved by correcting the spec format from a list to a dictionary, which was not caught by the local
spec
check but failed during the "check" step in Airbyte UI [see discussion](https://discuss.airbyte.io/t/2869). 2. Test the Docker Image Locally Run your connector's Docker image locally using the
spec
and
check
commands to see if you get more detailed error output:
Copy code
bash    docker run --rm -v $(pwd)/secrets:/secrets airbyte/custom-source-name check --config /secrets/config.json
This can sometimes reveal issues that the UI does not display [see discussion](https://discuss.airbyte.io/t/1230). 3. Platform Compatibility (M1/M2 Macs) If you are building on an M1/M2 Mac, ensure you are building your Docker image for the correct architecture (
linux/amd64
). Use Docker Buildx:
Copy code
bash    docker buildx build --platform linux/amd64 --push -t repo/image-name:tag .
This has resolved issues for users who encountered generic errors when uploading custom connectors built on ARM-based Macs [see discussion](https://discuss.airbyte.io/t/4652). 4. Review Airbyte and Docker Logs Check the Airbyte server and Docker logs for more detailed error messages. Sometimes, the UI only shows a generic error, but the logs may contain stack traces or specific validation errors. 5. Known Issues with the Connector Builder UI There have been reports of the Connector Builder UI returning generic errors (e.g., HTTP 405, 500) immediately after saving or editing a connector, especially with certain Airbyte versions. If you recently upgraded Airbyte or are using a newer version, consider downgrading to a stable version (e.g., 1.6.3) as a temporary workaround, as some users have found this resolves validation and editing issues [see issue](https://github.com/airbytehq/airbyte/issues/61677). 6. Minimal YAML/JSON for Debugging Try simplifying your connector YAML/JSON to the bare minimum and see if the error persists. Gradually add complexity to isolate the problematic section. If after these steps the error persists, you may need to contact Airbyte support with your connector spec and logs for further assistance, as some errors may be due to backend or UI bugs rather than your connector code. If you need more targeted help, please provide your connector spec (with sensitive info redacted) and any relevant logs you can access.
s
problem was with --low-resource-mode deployment connector-builder pod was missing Now we have another error "Could not validate your connector as specified: Error handling request: The low-code framework was promoted to Beta in airbyte-cdk version 0.29.0 and contains many breaking changes to the language. The manifest version 0.1.0 is incompatible with the airbyte-cdk package version 6.60.9 which contains these breaking changes."
Copy code
Traceback (most recent call last):
  File "/home/airbyte/.pyenv/versions/3.10.18/lib/python3.10/site-packages/airbyte_cdk/connector_builder/main.py", line 104, in module
    print(handle_request(sys.argv[1:]))
  File "/home/airbyte/.pyenv/versions/3.10.18/lib/python3.10/site-packages/airbyte_cdk/connector_builder/main.py", line 94, in handle_request
    source = create_source(config, limits)
  File "/home/airbyte/.pyenv/versions/3.10.18/lib/python3.10/site-packages/airbyte_cdk/connector_builder/connector_builder_handler.py", line 80, in create_source
    return ManifestDeclarativeSource(
  File "/home/airbyte/.pyenv/versions/3.10.18/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 147, in __init__
    self._validate_source()
  File "/home/airbyte/.pyenv/versions/3.10.18/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 460, in _validate_source
    raise ValidationError(
jsonschema.exceptions.ValidationError: The low-code framework was promoted to Beta in airbyte-cdk version 0.29.0 and contains many breaking changes to the language. The manifest version 0.1.0 is incompatible with the airbyte-cdk package version 6.60.9 which contains these breaking changes.