airbytehq / airbytehq/airbyte-api-java-sdk

API from Airbyte server is expecting sourceDefinationId

Đang mở
#103 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
24
Fork
12
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

@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": "****"
}
}

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.