<@U04SE163WC8> Unable to set up the connector usin...
# replication-ask-ai
d
@kapa.ai Unable to set up the connector using the Airbyte Builder results in an error when passing the request body to this API Error:
Copy code
Error handling request: Validation against json schema defined in declarative_component_schema.yaml schema failed
What is the context of this issue, given that the same request body works as expected in Postman. How can I resolve this? Request Body
Copy code
{
  "startTime": "2023-04-08",
  "endTime": "2023-04-09",
  "selector": {
    "orderBy": [
      {
        "field": "campaignId",
        "sortOrder": "DESCENDING"
      }
    ]
  },
  "timeZone": "UTC",
  "returnRecordsWithNoMetrics": false,
  "returnRowTotals": true,
  "returnGrandTotals": true
}
k
Hmm, I don't know enough to give you a confident answer yet. However, based on the information provided, it seems like the issue might be related to the JSON schema validation error. This error typically occurs when the JSON data structure doesn't match the expected schema. In Airbyte, the JSON schema validation is handled by the
JsonSchemaValidator
class, which ensures that the JSON data structure matches the expected schema. If the validation fails, it throws an error. This is evident from the error message you provided:
Error handling request: Validation against json schema defined in declarative_component_schema.yaml schema failed
. The error message suggests that the request body you're trying to pass to the API doesn't match the expected schema defined in the
declarative_component_schema.yaml
file. You might want to check this file and ensure that your request body matches the expected schema. If you're using the Airbyte CDK (Connector Development Kit), you might find the [Connector Specification Reference](https://docs.airbyte.com/connector-development/connector-specification-reference#using-oneof) and [Advanced Topics](https://docs.airbyte.com/connector-development/config-based/advanced-topics#component-schema-reference) sections of the Airbyte documentation helpful. They provide more information about how to define and use JSON schemas in Airbyte. If the issue persists, you might want to consider opening an issue on the [Airbyte GitHub repository](https://github.com/airbytehq/airbyte/issues). The Airbyte team and community are usually very responsive and might be able to provide more specific guidance.