# Chapter 11 code quiz fails due to api-inference.huggingface.co DNS resolution error

**URL:** <https://discuss.huggingface.co/t/chapter-11-code-quiz-fails-due-to-api-inference-huggingface-co-dns-resolution-error/177781>\
**Category:** Course\
**Created:** [July 13, 2026, 8:07pm UTC](https://discuss.huggingface.co/t/chapter-11-code-quiz-fails-due-to-api-inference-huggingface-co-dns-resolution-error/177781 "2026-07-13T20:07:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijeet0408](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhijeet0408/32/61594_2.png) [@abhijeet0408](https://discuss.huggingface.co/u/abhijeet0408)\
**Post date:** [July 13, 2026, 8:07pm UTC](https://discuss.huggingface.co/t/chapter-11-code-quiz-fails-due-to-api-inference-huggingface-co-dns-resolution-error/177781/1 "2026-07-13T20:07:31Z")

</div>

Hi Hugging Face team,

I’m currently taking the Hugging Face LLM Course (Chapter 11) and I’m unable to complete the code quiz.

Every time I submit my solution, it fails with the following error:

MaxRetryError: HTTPSConnectionPool(host=‘[api-inference.huggingface.co](http://api-inference.huggingface.co)’, port=443): Failed to resolve ‘[api-inference.huggingface.co](http://api-inference.huggingface.co)’

The website itself loads correctly, but the code checker cannot reach the inference API, so my solutions are marked as incorrect.

I have already tried:

- Different browsers (Chrome, Edge, Brave)
- Airtel mobile hotspot
- Cloudflare WARP
- Google DNS (8.8.8.8)
- Flushing DNS cache
- Restarting my laptop

The issue still persists.

Could you please check if this is a problem with the course infrastructure or the API endpoint?

Hugging Face username: abhijeet0408

Thank you.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 14, 2026, 12:37am UTC](https://discuss.huggingface.co/t/chapter-11-code-quiz-fails-due-to-api-inference-huggingface-co-dns-resolution-error/177781/2 "2026-07-14T00:37:14Z")

</div>

Well. Simply put, this is an issue on the official Space side:

* * *

I was able to reproduce the failure with the current grader code. The failing request is made by the Space backend—not by your browser—and it is still targeting the legacy `api-inference.huggingface.co` route. Current Hugging Face inference uses the [Inference Providers](https://huggingface.co/docs/inference-providers/en/index) routing system instead.

There is also a problem with the current fallback: when the model call fails, the grader compares the formatted submission and reference solution as strings. This means a functionally correct alternative solution can be reported as incorrect during an infrastructure failure.

I opened [Space PR #10](https://huggingface.co/spaces/huggingface-course/sft_code_quiz/discussions/10) to update the routing and prevent an unavailable grader from recording an incorrect answer. The same failure is also tracked in [course issue #1270](https://github.com/huggingface/course/issues/1270).

The PR has not been merged yet, so the official quiz may continue failing until the Space is updated and rebuilt. I do not think further browser, DNS, or network changes on your side will help at this point.

---

<div class="post-metadata">

**Author:** ![RajeshKumar26](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@RajeshKumar26](https://discuss.huggingface.co/u/RajeshKumar26)\
**Post date:** [July 25, 2026, 2:54am UTC](https://discuss.huggingface.co/t/chapter-11-code-quiz-fails-due-to-api-inference-huggingface-co-dns-resolution-error/177781/3 "2026-07-25T02:54:52Z")

</div>

Hi @John6666 "Thanks for the detailed diagnosis — still hitting this today as well (attempt on 25-07-2026, Request ID:

1. f512da3b-be8c-496c-988b-75e824bfc2e2
2. b9441f52-d807-487e-94ca-fda1effa63cb).
3. 19d3a616-3056-45ec-9195-a91330c3886d Would be great if the PR could get merged soon since it’s currently blocking anyone from passing Chapter 11’s quiz. Posted in the community: [Grading fails with NameResolutionError to api-inference.huggingface.co — all correct answers marked wrong](https://discuss.huggingface.co/t/grading-fails-with-nameresolutionerror-to-api-inference-huggingface-co-all-correct-answers-marked-wrong/178194)

Thanks

Rajeshkumar

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 25, 2026, 8:24am UTC](https://discuss.huggingface.co/t/chapter-11-code-quiz-fails-due-to-api-inference-huggingface-co-dns-resolution-error/177781/4 "2026-07-25T08:24:09Z")

</div>

Oh. I submitted a PR, but since the changes won’t take effect until HF actually merges it, I guess it’s still broken…😅

---

<div class="post-metadata">

**Author:** ![honzaz](https://avatars.discourse-cdn.com/v4/letter/h/f17d59/32.png) [@honzaz](https://discuss.huggingface.co/u/honzaz)\
**Post date:** [September 6, 2026, 11:46am UTC](https://discuss.huggingface.co/t/chapter-11-code-quiz-fails-due-to-api-inference-huggingface-co-dns-resolution-error/177781/5 "2026-09-06T11:46:21Z")

</div>

I have the same problem (Part 11), even for code questions like set parameter to True it returns error no address association with the hostname. Should I keep trying different formats of answers or is the server down and I should wait? Thank you very much for you answer.

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/2/c/2cce2047088354d656676cff197fd7e9cce621be.png)
