Wajdi M
07/31/2023, 11:18 AM"message": "Invalid json input. Unrecognized field \"sourceId\" (class io.airbyte.api.model.generated.SourceCoreConfig), not marked as ignorable (3 known properties: \"connectionConfiguration\", \"sourceDefinitionId\", \"workspaceId\"])\n at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 3, column: 16] (through reference chain: io.airbyte.api.model.generated.SourceCoreConfig[\"sourceId\"]) Unrecognized field \"sourceId\" (class io.airbyte.api.model.generated.SourceCoreConfig), not marked as ignorable",
"exceptionClassName": "com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException",
(edited)
body
{
"sourceDefinitionId": "36c891d9-4bd9-43ac-bad2-10e12756272c",
"sourceId": "defac237-4986-45d2-9e92-7d7ecfd3b4ae",
"connectionConfiguration": {
"start_date": "2017-01-25T00:00:00Z",
"credentials": {
"client_id": "****",
"client_secret": "****",
"refresh_token": "*****",
"credentials_title": "OAuth Credentials"
}
},
"workspaceId": "4f3fe24e-5ca9-48e8-8191-a2638cd30229"
}
after remove the sourceId, get this error
"message": "Internal Server Error: Cannot invoke \"java.util.UUID.toString()\" because the return value of \"io.airbyte.config.SourceConnection.getSourceId()\" is null", "exceptionClassName": "java.lang.NullPointerException",kapa.ai
07/31/2023, 11:18 AMSourceCoreConfig class only recognizes the following properties: "connectionConfiguration", "sourceDefinitionId", and "workspaceId". The error message you're seeing after removing the "sourceId" field suggests that the SourceConnection.getSourceId() method is returning null, which is causing a NullPointerException when the toString() method is invoked on it. Unfortunately, the extracts do not provide a direct example of the correct usage of the POST /v1/scheduler/sources/discover_schema endpoint. However, based on the information from the [Slack conversation](https://airbytehq.slack.com/archives/C021JANJ6TY/p1666381521924919), it seems that the "sourceId" field is not required or recognized by the SourceCoreConfig class. You might want to check the official Airbyte documentation or reach out to the Airbyte community for more specific guidance on how to correctly use this API endpoint.