Skip to content

API from Airbyte server is expecting sourceDefinationId #103

Open
@pratikguru998

Description

@pratikguru998

@JsonCreator
public SourceCreateRequest(
@JsonProperty("configuration") SourceConfiguration configuration,
@JsonProperty("definitionId") Optional<? extends String> definitionId,
@JsonProperty("name") String name,
@JsonProperty("secretId") Optional<? extends String> secretId,
@JsonProperty("workspaceId") String workspaceId) {
Utils.checkNotNull(configuration, "configuration");
Utils.checkNotNull(definitionId, "definitionId"); // here sourceDefinationId is expected,
Utils.checkNotNull(name, "name");
Utils.checkNotNull(secretId, "secretId");
Utils.checkNotNull(workspaceId, "workspaceId");
this.configuration = configuration;
this.definitionId = definitionId; // here sourceDefinationId is expected,

    This was request payload created by java sdk - 500 Error
    
    {

"configuration": {
"bulk_window_in_days": 30,
"credentials": {
"access_token": "",
"client_id": "
",
"client_secret": "
******",
"auth_method": "oauth2.0"
},
"fetch_transactions_user_id": false,
"job_termination_threshold": 3600,
"shop": "*",
"start_date": "2020-01-01",
"sourceType": "shopify"
},
"definitionId": "9da77001-af33-4bcd-be46-",
"name": "Shopify 3",
"workspaceId": "2249fe66-575d-48fc-be69-
"
}


API request from postman that worked

{
"name": "Shopify2",
"sourceDefinitionId": "9da77001-af33-4bcd-be46-",
"workspaceId": "2249fe66-575d-48fc-be69-
",
"connectionConfiguration": {
"credentials": {
"auth_method": "oauth2.0",
"client_id": "",
"client_secret": "
",
"access_token": ""
},
"shop": "
"
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions