airbytehq / airbytehq/airbyte

Custom connector isn't url encoding query parameters correctly

Aperta
#58,585 6 commenti 3 reazioni 0 assegnatari Vedi su GitHub
area/connector-builder community team/use
Lingua principale
Python
Stelle
22.1k
Fork
5.3k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

### Topic

custom connector broken

### Relevant information

When you use a query parameter that is a JSON array, the resulting URL encoding is wrong.

I'm trying to build a custom connector use the low code builder to connect to the Bubble Data API.

I need to include a search constraint, which is documented here:

https://manual.bubble.io/help-guides/integrations/api/the-bubble-api/the-data-api/data-api-requests#request-3

Basically, it's a JSON array of objects set as the value to the query param "constraints".

For example: [{"key": "Is Published", "constraint_type": "equals", "value": "false"}]

![Image](https://github.com/user-attachments/assets/78a65bbf-2ca9-497f-a824-30de2dbc3808)

When I test the connection, Airbyte converts the query string to (api.domain.com is replacement of actual domain):

https://api.domain.com/api/1.1/obj/class?constraints=key&constraints=constraint_type&constraints=value

Okay, so that isn't right.

When I manually URL encode the query value, I get this:

%5B%7B%22key%22%3A%20%22Is%20Published%22%2C%20%22constraint_type%22%3A%20%22equals%22%2C%20%22value%22%3A%20%22false%22%7D%5D

This works in Postman.

But when I use that in Airbyte...

![Image](https://github.com/user-attachments/assets/8fd251f6-8eb4-4142-8284-5088e16ba422)

...and test it, it adds characters and changes the query param to:

%255B%257B%2522key%2522%253A%2520%2522Is%2520Published%2522%252C%2520%2522constraint_type%2522%253A%2520%2522equals%2522%252C%2520%2522value%2522%253A%2520%2522false%2522%257D%255D

I'm stuck! I love Airbyte and hope this is something that can get fixed ASAP! The Bubble community would love this tool.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.