# Hugging Face Agents Course Quiz — Inference API Connection Error

> Source: <https://discuss.huggingface.co/t/hugging-face-agents-course-quiz-inference-api-connection-error/180145#post_1>
> Published: 2026-09-08 19:36:36+00:00

Hello Hugging Face team,

I’m currently taking the Agents Course, Unit 2 — smolagents, and I’m working on the “Create a Basic Code Agent with Web Search Capability” challenge.

When I submit my solution, the quiz gives me this warning:

`Error generating feedback: MaxRetryError('HTTPSConnectionPool(host=\'api-inference.huggingface.co\', port=443): Max retries exceeded with url: /models/Qwen/Qwen2.5-Coder-32B-Instruct (Caused by NameResolutionError: Failed to resolve \'api-inference.huggingface.co\' ([Errno -5] No address associated with hostname))')`

The error appears to indicate that the quiz environment cannot resolve or connect to `api-inference.huggingface.co`.

My code is:

``` python
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel

agent = CodeAgent(
    tools=[DuckDuckGoSearchTool()],
    model=HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
)
```

Could you please check whether the inference endpoint or the quiz feedback service is currently experiencing a DNS/network issue?

Thank you!
