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

value-not-found error when creating Brevo source via API #49731

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

value-not-found error when creating Brevo source via API #49731

nsoticek opened this issue Dec 14, 2024 · 0 comments
Labels

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants