value-not-found error when creating Brevo source via API #49731
Labels
area/connectors
Connector related issues
autoteam
community
needs-triage
team/use
type/bug
Something isn't working
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
Contribute
The text was updated successfully, but these errors were encountered: