I'm trying to sync a connection but i'm getting th...
# ask-ai
m
I'm trying to sync a connection but i'm getting the error: { "failureOrigin" : "source", "failureType" : "system_error", "internalMessage" : "Exception while syncing stream Parceiros: ConnectionError: HTTPConnectionPool(host='lego-bun-service', port=80): Max retries exceeded with url: /data?page=0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7d29eba4d750>: Failed to establish a new connection: [Errno 111] Connection refused'))", "externalMessage" : "Something went wrong in the connector. See the logs for more details.", "metadata" : { "attemptNumber" : 0, "jobId" : 1157088, "from_trace_message" : true, "connector_command" : "read" }, "stacktrace" : "airbyte_cdk.sources.concurrent_source.stream_thread_exception.StreamThreadException: Exception while syncing stream Parceiros: ConnectionError: HTTPConnectionPool(host='lego-bun-service', port=80): Max retries exceeded with url: /data?page=0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7d29eba4d750>: Failed to establish a new connection: [Errno 111] Connection refused'))\n", "timestamp" : 1755059209659, "streamDescriptor" : { "name" : "Parceiros" } } in the builder the error is: An unknown error has occurred i can't reproduce any error calling the API locally via Postman/Insomnia
k
The error message you are seeing:
Copy code
ConnectionError: HTTPConnectionPool(host='lego-bun-service', port=80): Max retries exceeded with url: /data?page=0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7d29eba4d750>: Failed to establish a new connection: [Errno 111] Connection refused'))
indicates that the Airbyte connector is unable to establish a connection to the service at
lego-bun-service
on port 80. This is a low-level network error, meaning the connector cannot reach the specified host and port from within the Airbyte environment. Key points to consider: - This is a "system_error" from the source, specifically a connection refused error, which typically means that the service is not reachable from where Airbyte is running. - The error is not related to the API itself (since you can reach it via Postman/Insomnia locally), but rather to the network environment in which Airbyte is running. - This type of error is similar to other connection errors reported in Airbyte, such as when a connector cannot reach a database or API due to network issues, misconfiguration, or incorrect hostnames/ports (see examples: [source-mysql connection refused](https://github.com/airbytehq/airbyte/issues/45359), [destination-typesense connection refused](https://github.com/airbytehq/airbyte/issues/38833)). Troubleshooting steps: 1. Check the Hostname: Ensure that
lego-bun-service
is resolvable and accessible from the Airbyte environment. If you are running Airbyte in Docker, the service must be on the same Docker network or accessible from the container. 2. Check the Port: Make sure the service is actually listening on port 80 and is not firewalled or restricted. 3. Network Configuration: If you are using Docker Compose or Kubernetes, verify that the service name (
lego-bun-service
) is correct and that the network configuration allows Airbyte to reach it. 4. Try Using an IP Address: As a test, try replacing the hostname with the direct IP address of the service to rule out DNS resolution issues. 5. Compare Environments: The fact that it works in Postman/Insomnia locally suggests a difference between your local environment and the Airbyte runtime environment. Double-check network settings, environment variables, and service discovery mechanisms. 6. Review Airbyte Logs: The external message suggests checking the logs for more details. There may be additional context in the Airbyte platform logs. Summary: This is a network connectivity issue between Airbyte and your target service, not an issue with the API itself. You need to ensure that the Airbyte connector can reach the service at the specified host and port from within its own environment. This is a common issue when running services in containers or cloud environments, and is not unique to your setup. If you continue to have issues, please provide more details about your Airbyte deployment (Docker, Kubernetes, Cloud, etc.) and how the target service is hosted, so more specific guidance can be given. The knowledge sources do not provide a direct solution for your specific service, but similar connection errors are documented and the troubleshooting approach is consistent with Airbyte's general guidance for connection issues[Review connection statuses](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/review-connection-status#connection-troubleshooting).