<@U04S8PLJWMT> -- creating a custom connector and ...
# ask-ai
c
@kapa.ai -- creating a custom connector and getting this message: OAuth login failed: errors.http.internalServerError any documentation on this
k
If you are creating a custom connector in Airbyte and encounter the error message "OAuth login failed: errors.http.internalServerError," this typically indicates a problem with the OAuth flow implementation or configuration in your connector. Based on the knowledge sources, here are some relevant points and troubleshooting steps: 1. OAuth Flow in Airbyte Airbyte handles OAuth flows internally, but for custom connectors (especially in self-managed or OSS deployments), you must provide your own client credentials (Client ID and Client Secret) and ensure the OAuth flow is correctly implemented in your connector's specification. If these are missing or misconfigured, authentication will fail with server errors. Double-check that your connector's OAuth configuration matches the requirements of the third-party API and that all necessary fields are present in your connector spec and UI. [Using OAuth to Connect](https://docs.airbyte.com/platform/next/using-airbyte/oauth) 2. Common Causes of Internal Server Errors - Missing or Incorrect Parameters: Errors like "Undefined parameter 'client_secret' necessary for the OAuth Flow" or "Missing 'refresh_token' in query params" are often due to missing fields in the connector configuration or spec. Make sure all required OAuth parameters are included and correctly mapped. - No OAuth Implementation: If the error message mentions that the OAuth implementation is not included in the mapping, your connector may lack a proper OAuth flow definition. For custom connectors, you may need to extend the connector with a
DeclarativeOAuthFlow
and update the spec accordingly. - UI/Spec Mismatch: Sometimes, the UI may not expose all required fields (e.g., Refresh Token), especially after platform or connector updates. This can cause OAuth to fail. [Github Issue: source-bing-ads OAuth login failed](https://github.com/airbytehq/airbyte/issues/53651) [Github Issue: source-rd-station-marketing Cannot authenticate](https://github.com/airbytehq/airbyte/issues/52684) 3. Troubleshooting Steps - Ensure your connector's YAML spec includes all required OAuth fields. - If you are using a custom or marketplace connector, register your own OAuth app with the third-party service and provide the correct credentials. - Check that the redirect URI registered with the third-party matches the one provided by Airbyte. - If you see "Internal Server Error: not yet implemented," it may indicate a missing backend implementation for the OAuth flow in your Airbyte deployment. [Github Issue: 403 forbidden error on local deployment when creating a custom connector](https://github.com/airbytehq/airbyte/issues/61677) 4. Documentation - [Airbyte OAuth documentation (latest)](https://docs.airbyte.com/platform/next/using-airbyte/oauth) - [Error handling in connector YAML spec](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/error-handling) If you continue to encounter issues, review your connector's OAuth implementation and compare it with working examples in the Airbyte documentation. If the error persists and you believe your configuration is correct, it may be a bug or a missing feature in your Airbyte version, in which case checking for updates or reporting the issue to the Airbyte team is recommended. If you need more specific guidance, please provide details about your connector spec and the exact error message.