airbyte
airbyte copied to clipboard
`/v1/*/search` always return empty result
Environment
- Airbyte version: 0.40.23
- OS Version / Instance: Arch Linux
- Deployment: Docker
Current Behavior
No matter what I send. /v1/destinations/search
always return empty result: {"destinations":[]}
.
The same happens to /v1/sources/search
and /v1/connections/search
Expected Behavior
It should return the destinations it has found. Like all destinations in the workspace with {"workspaceId":"UUID"}
.
Logs
Steps to Reproduce
- Create a destination
- Send a POST request to
/v1/destinations/search
with{"name":"NAME_OF_YOU_DESTINATION"}
(ref. https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html#post-/v1/destinations/search) - You should see the destination.
Hi @omid , just to double check: are you including the destination ID in the request body?
Hey @natalyjazzviolin, no
@natalyjazzviolin should I? 🤔
Note, we are having the same result in 0.40.23,
The empty list is returned anyways, note that this does not happens with source/search
or connection/search
, it is very specific to destinations
.
It is a blocker for us, as our use-case is looking for existing destinations
by name, if none exists, create, else retreive id.
@IzioDev as a workaround, you can fetch all destinations and search on your side.
That's what the API should already do, as defined here https://github.com/airbytehq/airbyte/blob/9cb5714cd127fbd6134d68d9a34b023b7940343d/airbyte-server/src/main/java/io/airbyte/server/handlers/DestinationHandler.java#L223-L230
but yes, we could copy/pasta the logic, but we prefer to use native search, as it will release us from maintaining this part of lookup
The bug still exists in 0.40.24 in all 3 endpoints: /v1/destinations/search
, /v1/sources/search
and /v1/connections/search
Bug seems to be fixed for /v1/sources/search
on 0.44.0.
The others endpoints still are broken
This is still broken on 0.50.0.
The Configuration API is not supported or maintained for direct use: https://docs.airbyte.com/api-documentation
If the search capabilities of the Airbyte API are lacking, let us know and we can open a dedicated feature request for improving it