cd /news/ai-tools/hugging-face-agents-course-quiz-infe… · home topics ai-tools article
[ARTICLE · art-123762] src=discuss.huggingface.co ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Hugging Face Agents Course Quiz — Inference API Connection Error

A Hugging Face Agents Course student reported a connection error when submitting a quiz solution, with the feedback service failing to resolve api-inference.huggingface.co for the Qwen/Qwen2.5-Coder-32B-Instruct model. The error, a MaxRetryError citing a NameResolutionError, suggests a DNS or network issue in the quiz environment. The student asked Hugging Face to check the inference endpoint or feedback service.

read1 min views6 publishedSep 8, 2026

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:

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!

── more in #ai-tools 4 stories · sorted by recency
── more on @hugging face 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/hugging-face-agents-…] indexed:0 read:1min 2026-09-08 ·