airbytehq / airbytehq/airbyte-api-java-sdk

API from Airbyte server is expecting sourceDefinationId

Offen
#103 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
24
Forks
12
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

@JsonCreator
public SourceCreateRequest(
@JsonProperty("configuration") SourceConfiguration configuration,
@JsonProperty("definitionId") Optional definitionId,
@JsonProperty("name") String name,
@JsonProperty("secretId") Optional 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": "****"
}
}

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.