<@U04SE163WC8> i am getting the error ERROR ```In...
# ask-ai
b
@kapa.ai i am getting the error ERROR
Copy code
Invalid Protocol Schema: The endpoint that data is being requested from is using an invalid or insecure. Exception: requests.exceptions.InvalidSchema - Traceback (most recent call last): File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/abstract_source.py", line 133, in read yield from self._read_stream( File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/abstract_source.py", line 239, in _read_stream for record_data_or_message in record_iterator: File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/streams/core.py", line 192, in read for record_data_or_message in records: File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/declarative_stream.py", line 137, in read_records yield from self.retriever.read_records(self.get_json_schema(), stream_slice) # type: ignore # records are of the correct type File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 378, in read_records for stream_data in self._read_pages(record_generator, self.state, _slice): File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 301, in _read_pages response = self._fetch_next_page(stream_state, stream_slice, next_page_token) File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 487, in _fetch_next_page return self.requester.send_request( File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/requesters/http_requester.py", line 305, in send_request request, response = self._http_client.send_request( File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py", line 406, in send_request response: requests.Response = self._send_with_retry( File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py", line 236, in _send_with_retry response = backoff_handler(rate_limit_backoff_handler(user_backoff_handler))(request, request_kwargs, log_formatter=log_formatter, exit_on_rate_limit=exit_on_rate_limit) # type: ignore # mypy can't infer that backoff_handler wraps _send File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/backoff/_sync.py", line 105, in retry ret = target(*args, **kwargs) File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/backoff/_sync.py", line 105, in retry ret = target(*args, **kwargs) File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/backoff/_sync.py", line 105, in retry ret = target(*args, **kwargs) File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py", line 290, in _send self._handle_error_resolution( File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/http_client.py", line 326, in _handle_error_resolution raise MessageRepresentationAirbyteTracedErrors( airbyte_cdk.sources.streams.http.http_client.MessageRepresentationAirbyteTracedErrors: Invalid Protocol Schema: The endpoint that data is being requested from is using an invalid or insecure. Exception: requests.exceptions.InvalidSchema
ERROR
Copy code
None - Traceback (most recent call last): File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/connector_builder/message_grouper.py", line 302, in _read_stream yield from AirbyteEntrypoint(source).read(source.spec(self.logger), config, configured_catalog, state) File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/entrypoint.py", line 191, in read for message in self.source.read(self.logger, config, catalog, state): File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 165, in read yield from super().read(logger, config, catalog, state) File "/home/airbyte/.pyenv/versions/3.10.14/lib/python3.10/site-packages/airbyte_cdk/sources/abstract_source.py", line 177, in read raise AirbyteTracedException(message=error_message, failure_type=FailureType.config_error) airbyte_cdk.utils.traced_exception.AirbyteTracedException: None
u
Based on the error message you've provided, it appears you're encountering an issue with an invalid or insecure protocol schema when trying to connect to an endpoint in your Airbyte configuration. This error is typically related to the URL or endpoint configuration in your source connector. Let's break down the error and provide some potential solutions: 1. Invalid Protocol Schema: The error suggests that the endpoint you're trying to connect to is using an invalid or insecure protocol. This often happens when the URL is missing the correct protocol (e.g., "http://" or "https://") or is using an unsupported protocol. 2. requests.exceptions.InvalidSchema: This specific exception is raised by the Python requests library when it encounters an invalid URL scheme. To resolve this issue, you should: 1. Check your source configuration: Ensure that the URL or endpoint you've specified in your source configuration includes the correct protocol, typically "https://" for secure connections. 2. Verify the URL format: Make sure the URL is correctly formatted and doesn't contain any typos or extra characters. 3. Use HTTPS: If possible, always use "https://" instead of "http://" for better security. 4. Double-check API documentation: If you're connecting to an external API, review their documentation to ensure you're using the correct URL format and protocol. 5. Examine your connector configuration: If you're using a custom connector or the Connector Builder, review your configuration to ensure all URL-related fields are correctly set. If you continue to face issues after checking these points, you may want to: 1. Review the full connector logs for any additional context or errors. 2. Check if there are any network-related issues that might be preventing the connection. 3. Verify that the endpoint you're trying to reach is actually accessible and functioning correctly. If the problem persists, you might want to seek help from the Airbyte community or support channels, providing them with the full error log and details about your connector configuration (excluding any sensitive information). [Airbyte Documentation](https://docs.airbyte.com/) might have more specific information related to your particular source connector and its configuration.