Custom connector isn't url encoding query parameters correctly
- 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"}]

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...

...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.