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

[source-brevo] value-not-found error when creating via API #49731

Open
1 task
nsoticek opened this issue Dec 14, 2024 · 2 comments
Open
1 task

[source-brevo] value-not-found error when creating via API #49731

nsoticek opened this issue Dec 14, 2024 · 2 comments
Labels
area/api Related to the api area/connectors Connector related issues autoteam community team/use type/bug Something isn't working

Comments

@nsoticek
Copy link

Connector Name

brevo

Connector Version

v0.1.2

What step the error happened?

Configuring a new connector

Relevant information

When attempting to create a new source for Brevo in Airbyte (v1.3.0) via API, the following error occurs:

status: 400, type: 'https://reference.airbyte.com/reference/errors', title: 'value-not-found', detail: 'The submitted value could not be found.', documentationUrl: null, data: { value: 'brevo' }

I think the problem is that the mapping item for Brevo is missing in following file -> airbyte-server/src/main/kotlin/io/airbyte/server/apis/publicapi/mappers/NameToDefinitionMapper.kt

There is a mapping item for sendinblue, but not for brevo. Sendinblue changed its name to brevo in 2023.

I used following js code to create the soure:

const response = await fetch(${this.apiUrl}/api/public/v1/sources, { method: 'POST', headers: { 'Content-Type': 'application/json', 'accept': 'application/json', 'Authorization': Bearer ${accessToken} }, body: JSON.stringify({ name: this.dataSourceId, workspaceId: this.workspaceId, configuration: { sourceType: "brevo", api_key: this.brevoApiKey, start_date: "2024-10-01T00:00:00Z" } }) });

Relevant log output

status: 400,
  type: 'https://reference.airbyte.com/reference/errors',
  title: 'value-not-found',
  detail: 'The submitted value could not be found.',
  documentationUrl: null,
  data: { value: 'brevo' }

Contribute

  • Yes, I want to contribute
@marcosmarxm
Copy link
Member

Are you able to create manually using Postman request?
When you go the Airbyte Settings -> Sources, do you see Brevo connector there?

@marcosmarxm marcosmarxm added the area/api Related to the api label Dec 16, 2024
@marcosmarxm marcosmarxm changed the title value-not-found error when creating Brevo source via API [source-brevo] value-not-found error when creating via API Dec 16, 2024
@nsoticek
Copy link
Author

I also tried with postman but got the same error. I can create a Brevo source via the GUI, but using the API triggers the error. So yeah, i can find the brevo connector in the settings.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Related to the api area/connectors Connector related issues autoteam community team/use type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants