Hello everyone, I am trying to develop a source c...
# replication-troubleshooting
a
Hello everyone, I am trying to develop a source connector for Etsy from scratch. Using self hosted version of Airbyte installed with abctl command and running under a docker container. Used declarative authentication section to define the OAuth 2.0 authentication configurations in connector builder UI. But there is no place to define the redirect url there. Also it prompts to use
http://localhost:3000/auth_flow
as the redirect_url in Etsy app which I did with
ngrok_url/auth_flow
When I authenticate the connector, Etsy window for login opens up but on login, instead of redirection, the page shows
A stitch has gone away!
error. Can anyone help on this please?
k
In Airbyte’s Declarative OAuth 2.0, you don’t explicitly configure the redirect URL in the connector definition; Airbyte generates and displays the redirect URI for you in the UI when you set up the connection, and that is the value you must copy into your OAuth app on the provider side. [[Using OAuth](https://docs.airbyte.com/platform/using-airbyte/oauth)] Key points from the docs that apply to your situation: 1. Redirect URI is fixed by Airbyte, not set in the connector spec - In the connector-builder UI / declarative OAuth config, you only define: - Consent URL (where the user is sent for authorization). - Access token URL (where the auth code is exchanged for a token). - Optional headers/params and key overrides (client_id, scope, state, etc.). [[Connector builder OAuth 2](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/authentication#oauth-2); [Declarative OAuth config fields](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/oauth#configuration-fields)] - The redirect URI itself is handled by Airbyte and surfaced in the UI during connector setup; you must register exactly that value in the Etsy app configuration. [[Using OAuth](https://docs.airbyte.com/platform/using-airbyte/oauth)] 2. You should not replace it with an ngrok URL unless that is what Airbyte shows The documentation stresses “Redirect URI Mismatch” as a common failure mode: the redirect URI registered with the third-party must match the URI used by Airbyte exactly. [[Using OAuth](https://docs.airbyte.com/platform/using-airbyte/oauth)] If you manually changed
http://localhost:3000/auth_flow
to
ngrok_url/auth_flow
in the Etsy app, but Airbyte is still using the original URI internally, Etsy will redirect to a URI that Airbyte is not expecting, which can break the flow. 3. What you can verify in your setup (based on docs) - Open your connector in Airbyte and go through the OAuth setup until the UI shows you the redirect URI; use that exact URL in your Etsy app configuration. [[Using OAuth](https://docs.airbyte.com/platform/using-airbyte/oauth)] - Keep using Declarative OAuth for: - Consent URL template (with placeholders for
client_id
,
redirect_uri
,
state
, etc.). - Access token URL and optional headers / query params / key overrides. [[Connector builder OAuth 2](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/authentication#oauth-2); [Declarative OAuth 2.0](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/authentication#declarative-oauth-20)] The knowledge sources do not mention the specific Etsy error message (
"A stitch has gone away!"
), so I can’t confirm the exact cause on Etsy’s side. But from the Airbyte side, the only redirect-URL-related requirement is: use exactly the redirect URI that Airbyte shows you during connector setup, and don’t try to override it in the declarative OAuth config. [[Using OAuth](https://docs.airbyte.com/platform/using-airbyte/oauth)]
a
The redirect_url given in Airbyte is
localhost:3000/auth_flow
. Etsy won't be able to reach localhost as it requires public URL.
Also is it possible to complete OAuth 2.0 flow for Etsy in Airbyte?