[HANDS-ON BUG]
Describe the bug During the completion of the Unit 2 Final Quiz, the evaluation backend fails with a network error (NameResolutionError). It appears that the quiz evaluation sandbox is unable to connect to api-inference.huggingface.co, causing a MaxRetryError and blocking the generation of feedback for the submitted code. To Reproduce
- Go to the quiz page: https://huggingface.co/learn/agents-course/en/unit2/smolagents/final_quiz
- Provide a valid implementation for Question 2 (Set Up a Multi-Agent System with Manager and Web Search Agents).
- Submit the solution.
- The yellow warning box appears containing the NameResolutionError. Screenshots (Poznámka: Do tohoto místa na GitHubu stačí přetáhnout nebo vložit pomocí Ctrl+V váš snímek obrazovky s chybou.) Additional context The full error trace shown in the UI is: 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)"))', '(Request ID: 2a476a21-1cab-430a-97ad-c5e368a864a8)') This prevents the submission from being processed and blocks the progress in the course.
Root cause: the unit2_smolagents_quiz Space pins huggingface-hub==0.28.1, whose InferenceClient still calls the decommissioned api-inference.huggingface.co endpoint (now 410/unresolvable).
There’s an open, ready-to-merge fix on the Space since Feb: https://huggingface.co/spaces/agents-course/unit2_smolagents_quiz/discussions/23.
Merging it (and making sure the Space’s HF_TOKEN has Inference Providers permission) should resolve this. Same issue as #709.