{"slug": "hugging-face-agents-course-quiz-inference-api-connection-error", "title": "Hugging Face Agents Course Quiz — Inference API Connection Error", "summary": "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.", "body_md": "Hello Hugging Face team,\n\nI’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.\n\nWhen I submit my solution, the quiz gives me this warning:\n\n`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))')`\n\nThe error appears to indicate that the quiz environment cannot resolve or connect to `api-inference.huggingface.co`.\n\nMy code is:\n\n``` python\nfrom smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel\n\nagent = CodeAgent(\n    tools=[DuckDuckGoSearchTool()],\n    model=HfApiModel(model_id=\"Qwen/Qwen2.5-Coder-32B-Instruct\")\n)\n```\n\nCould you please check whether the inference endpoint or the quiz feedback service is currently experiencing a DNS/network issue?\n\nThank you!", "url": "https://wpnews.pro/news/hugging-face-agents-course-quiz-inference-api-connection-error", "canonical_source": "https://discuss.huggingface.co/t/hugging-face-agents-course-quiz-inference-api-connection-error/180145#post_1", "published_at": "2026-09-08 19:36:36+00:00", "updated_at": "2026-09-08 19:47:27.698434+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools"], "entities": ["Hugging Face", "Qwen/Qwen2.5-Coder-32B-Instruct", "CodeAgent", "DuckDuckGoSearchTool", "HfApiModel"], "alternates": {"html": "https://wpnews.pro/news/hugging-face-agents-course-quiz-inference-api-connection-error", "markdown": "https://wpnews.pro/news/hugging-face-agents-course-quiz-inference-api-connection-error.md", "text": "https://wpnews.pro/news/hugging-face-agents-course-quiz-inference-api-connection-error.txt", "jsonld": "https://wpnews.pro/news/hugging-face-agents-course-quiz-inference-api-connection-error.jsonld"}}