Alexander Belikov
06/13/2023, 12:01 PMprefect-agent-1 | line 77, in map_httpcore_exceptions
prefect-agent-1 | raise mapped_exc(message) from exc
prefect-agent-1 | httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://'
prefect-agent-1 | protocol.
Has anyone seen something similar? (full error message in the thread)Jenny
06/13/2023, 3:20 PMJenny
06/13/2023, 3:21 PM<http://example.com|example.com>
, update it to `http://example.com` or `https://example.com`, depending on the protocol you are using.
Double-check your configuration and ensure that the URL is properly formatted with the correct protocol prefix.Alexander Belikov
06/13/2023, 7:27 PMprefect-agent-1 | Failed the last 3 attempts. Please check your environment and configuration.
prefect-agent-1 | Examples of recent errors:
prefect-agent-1 |
prefect-agent-1 | Traceback (most recent call last):
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py",
prefect-agent-1 | line 60, in map_httpcore_exceptions
prefect-agent-1 | yield
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py",
prefect-agent-1 | line 353, in handle_async_request
prefect-agent-1 | resp = await self._pool.handle_async_request(req)
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | File
prefect-agent-1 | "/usr/local/lib/python3.11/site-packages/httpcore/_async/connection_pool.py",
prefect-agent-1 | line 208, in handle_async_request
prefect-agent-1 | raise UnsupportedProtocol(
prefect-agent-1 | httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://'
prefect-agent-1 | protocol.
prefect-agent-1 |
prefect-agent-1 | The above exception was the direct cause of the following exception:
prefect-agent-1 |
prefect-agent-1 | Traceback (most recent call last):
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/prefect/utilities/services.py",
prefect-agent-1 | line 53, in critical_service_loop
prefect-agent-1 | await workload()
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/prefect/agent.py", line 264, in
prefect-agent-1 | check_for_cancelled_flow_runs
prefect-agent-1 | named_cancelling_flow_runs = await self.client.read_flow_runs(
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | File
prefect-agent-1 | "/usr/local/lib/python3.11/site-packages/prefect/client/orchestration.py", line
prefect-agent-1 | 1700, in read_flow_runs
prefect-agent-1 | response = await <http://self._client.post|self._client.post>("/flow_runs/filter", json=body)
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1845, in
prefect-agent-1 | post
prefect-agent-1 | return await self.request(
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1530, in
prefect-agent-1 | request
prefect-agent-1 | return await self.send(request, auth=auth,
prefect-agent-1 | follow_redirects=follow_redirects)
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | ^
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/prefect/client/base.py", line
prefect-agent-1 | 251, in send
prefect-agent-1 | response = await self._send_with_retry(
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/prefect/client/base.py", line
prefect-agent-1 | 194, in _send_with_retry
prefect-agent-1 | response = await request()
prefect-agent-1 | ^^^^^^^^^^^^^^^
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1617, in
prefect-agent-1 | send
prefect-agent-1 | response = await self._send_handling_auth(
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1645, in
prefect-agent-1 | _send_handling_auth
prefect-agent-1 | response = await self._send_handling_redirects(
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1682, in
prefect-agent-1 | _send_handling_redirects
prefect-agent-1 | response = await self._send_single_request(request)
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1719, in
prefect-agent-1 | _send_single_request
prefect-agent-1 | response = await transport.handle_async_request(request)
prefect-agent-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py",
prefect-agent-1 | line 352, in handle_async_request
prefect-agent-1 | with map_httpcore_exceptions():
prefect-agent-1 | File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
prefect-agent-1 | self.gen.throw(typ, value, traceback)
prefect-agent-1 | File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py",
prefect-agent-1 | line 77, in map_httpcore_exceptions
prefect-agent-1 | raise mapped_exc(message) from exc
prefect-agent-1 | httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://'
prefect-agent-1 | protocol.
prefect-agent-1 |
prefect-agent-1 |
prefect-agent-1 | Backing off due to consecutive errors, using increased interval of 60.0s.
Alexander Belikov
06/13/2023, 7:33 PMhttp
prefixAlexander Belikov
06/13/2023, 9:21 PMenvironment:
- PREFECT_API_URL="${HOST_URL}:${PREFECT_PORT}/api"
but in fact the double quotes were the cause of the problemJenny
06/13/2023, 9:50 PMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by