-
Notifications
You must be signed in to change notification settings - Fork 266
Description
Type of issue
- Instructions in the learning path do not work.
- Spelling error in the learning path.
- Instructions in the learning path are hard to follow.
- Instructions to contribute a new learning path are not clear.
- Other
Describe the issue
I followed the instructions and get an error
https://learn.arm.com/learning-paths/cross-platform/mcp-ai-agent/
Deploy an MCP Server on Raspberry Pi 5 for AI Agent Interaction using OpenAI SDK
When I run the agent I get the error as per screenshot
| Traceback (most recent call last):
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
| yield
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 394, in handle_async_request
| resp = await self._pool.handle_async_request(req)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 207, in handle_async_request
| raise UnsupportedProtocol(
| httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/mcp/client/sse.py", line 69, in sse_client
| async with aconnect_sse(
| File "/usr/lib/python3.11/contextlib.py", line 204, in aenter
| return await anext(self.gen)
| ^^^^^^^^^^^^^^^^^^^^^
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx_sse/_api.py", line 74, in aconnect_sse
| async with client.stream(method, url, headers=headers, **kwargs) as response:
| File "/usr/lib/python3.11/contextlib.py", line 204, in aenter
| return await anext(self.gen)
| ^^^^^^^^^^^^^^^^^^^^^
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1583, in stream
| response = await self.send(
| ^^^^^^^^^^^^^^^^
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1629, in send
| response = await self._send_handling_auth(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
| response = await self._send_handling_redirects(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
| response = await self._send_single_request(request)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1730, in _send_single_request
| response = await transport.handle_async_request(request)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 393, in handle_async_request
| with map_httpcore_exceptions():
| File "/usr/lib/python3.11/contextlib.py", line 155, in exit
| self.gen.throw(typ, value, traceback)
| File "/home/pi/mcp-agent/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
| raise mapped_exc(message) from exc
| httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.
To Reproduce
List the steps to reproduce the behavior:
server is running
ngrok is running
uv run main.py fails
Expected behavior
I do not get temperature readings
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- running on Raspberry PI
uname -a
Linux aipissd 6.12.62+rpt-rpi-2712 Template: Removed unused video-page template #1 SMP PREEMPT Debian 1:6.12.62-1+rpt1~bookworm (2026-01-19) aarch64 GNU/Linux - Browser chrome
- Version 145.0.7632
Mobile (please complete the following information):
not using mobile
Additional context
I have not modified any of the code, its as per the instructions; I tried multiple times same result