Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API from Airbyte server is expecting sourceDefinationId #103

Open
pratikguru998 opened this issue Aug 29, 2024 · 0 comments
Open

API from Airbyte server is expecting sourceDefinationId #103

pratikguru998 opened this issue Aug 29, 2024 · 0 comments

Comments

@pratikguru998
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant