Satish Srinivasan
02/01/2023, 11:23 PM2023-02-01 23:00:06 ERROR i.a.s.e.UncaughtExceptionHandler(handle):28 - Uncaught exception
java.lang.IllegalArgumentException: json schema nodes should always be object nodes. path: [FieldNameOrList{fieldName='type', isList=false}] actual: "string"
at io.airbyte.commons.json.JsonSchemas.traverseJsonSchemaInternal(JsonSchemas.java:177) ~[io.airbyte-airbyte-commons-0.40.32.jar:?]
at io.airbyte.commons.json.JsonSchemas.traverseJsonSchemaInternal(JsonSchemas.java:205) ~[io.airbyte-airbyte-commons-0.40.32.jar:?]
at io.airbyte.commons.json.JsonSchemas.traverseJsonSchema(JsonSchemas.java:103) ~[io.airbyte-airbyte-commons-0.40.32.jar:?]
at io.airbyte.commons.json.JsonSchemas.traverseJsonSchemaWithFilteredCollector(JsonSchemas.java:138) ~[io.airbyte-airbyte-commons-0.40.32.jar:?]
at io.airbyte.commons.json.JsonSchemas.collectPathsThatMeetCondition(JsonSchemas.java:153) ~[io.airbyte-airbyte-commons-0.40.32.jar:?]
at io.airbyte.config.persistence.split_secrets.JsonSecretsProcessor.maskAllSecrets(JsonSecretsProcessor.java:71) ~[io.airbyte.airbyte-config-config-persistence-0.40.32.jar:?]
at io.airbyte.config.persistence.split_secrets.JsonSecretsProcessor.prepareSecretsForOutput(JsonSecretsProcessor.java:59) ~[io.airbyte.airbyte-config-config-persistence-0.40.32.jar:?]Satish Srinivasan
02/03/2023, 6:55 PMversion: "0.1.0"
definitions:
selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_pointer: []
requester:
type: HttpRequester
url_base: "https://clinicaltrials.gov/api/query"
http_method: "GET"
authenticator:
type: BearerAuthenticator
api_token: "{{ config['api_key'] }}"
request_options_provider:
request_parameters:
expr: "{{ config['studyid'] }}"
fmt: "{{ config['format'] }}"
retriever:
type: SimpleRetriever
record_selector:
$ref: "*ref(definitions.selector)"
paginator:
type: NoPagination
requester:
$ref: "*ref(definitions.requester)"
base_stream:
type: DeclarativeStream
retriever:
$ref: "*ref(definitions.retriever)"
study_stream:
$ref: "*ref(definitions.base_stream)"
$options:
name: "study"
primary_key: "OrgStudyId"
path: "/full_studies?expr=xl184-315&fmt=json"
streams:
- "*ref(definitions.study_stream)"
check:
stream_names:
- "study"
spec:
documentation_url: https://docs.airbyte.com/integrations/sources/clinicaltrials-api
connection_specification:
title: Clinicaltrials Api Spec
type: object
required:
- api_key
- expr
- fmt
additionalProperties: true
properties:
api_key:
type: string
expr:
type: string
description: some expression to query
examples:
- xl184-315
fmt:
type: string
examples:
- json
- xmluser
03/14/2023, 2:56 PM