Jake Duckworth
09/25/2024, 5:03 PM<code>
Airbyte sdk = Airbyte.builder()
.security(Security.builder()
.basicAuth(SchemeBasicAuth.builder()
.password("")
.username("")
.build())
.build())
.build();
ListSourcesRequest req = ListSourcesRequest.builder()
.build();
ListSourcesResponse res = sdk.sources().listSources()
.request(req)
.call();
</code>
<error_message>
Method threw 'com.fasterxml.jackson.databind.JsonMappingException' exception.
</error_message>
<detail_message>
json matched more than one of the possible type references, matches are: [com.airbyte.api.models.shared.SourceAirtable, com.airbyte.api.models.shared.SourceAppfollow, com.airbyte.api.models.shared.SourceAsana, com.airbyte.api.models.shared.SourceClickhouse, com.airbyte.api.models.shared.SourceDynamodb, com.airbyte.api.models.shared.SourceE2eTestCloud, com.airbyte.api.models.shared.SourceFaker, com.airbyte.api.models.shared.SourceGoogleDirectory, com.airbyte.api.models.shared.SourceHardcodedRecords, com.airbyte.api.models.shared.SourceInsightly, com.airbyte.api.models.shared.SourceIp2whois, com.airbyte.api.models.shared.SourceMailchimp, com.airbyte.api.models.shared.SourceMonday, com.airbyte.api.models.shared.SourceNotion, com.airbyte.api.models.shared.SourceOkta, com.airbyte.api.models.shared.SourcePinterest, com.airbyte.api.models.shared.SourcePostgres, com.airbyte.api.models.shared.SourceRetently, com.airbyte.api.models.shared.SourceScryfall, com.airbyte.api.models.shared.SourceSpacexApi, com.airbyte.api.models.shared.SourceSquare, com.airbyte.api.models.shared.SourceTiktokMarketing, com.airbyte.api.models.shared.SourceWhiskyHunter, com.airbyte.api.models.shared.SourceXkcd, com.airbyte.api.models.shared.SourceYoutubeAnalytics] - json=REDACTED
</detail_message>
user
09/25/2024, 5:04 PMJsonMappingException
. I would recommend checking the structure of your JSON data and ensuring it matches the expected format. Also, make sure that the versions of Airbyte and the SDK you're using are compatible. For more detailed help, you might want to check out [Airbyte’s error-messages documentation](https://reference.airbyte.com/reference/errors) or post your question on the [Airbyte discussion forum](https://discuss.airbyte.io/).