# Error Parsing HTML as JSON

**URL:** <https://community.postman.com/t/error-parsing-html-as-json/28891>\
**Category:** Help Hub\
**Tags:** scripts, response, request\
**Created:** [October 19, 2021, 8:48pm UTC](https://community.postman.com/t/error-parsing-html-as-json/28891 "2021-10-19T20:48:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![descent-module-geol4](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@descent-module-geol4](https://community.postman.com/u/descent-module-geol4)\
**Post date:** [October 19, 2021, 8:48pm UTC](https://community.postman.com/t/error-parsing-html-as-json/28891/1 "2021-10-19T20:48:12Z")

</div>

getting request Response Schema is Valid | JSONError: Unexpected token ‘\<’ at 1:1 ^

---

<div class="post-metadata">

**Author:** ![docking-module-met12](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/docking-module-met12/32/32189_2.png) [@docking-module-met12](https://community.postman.com/u/docking-module-met12)\
**Post date:** [April 3, 2025, 5:50am UTC](https://community.postman.com/t/error-parsing-html-as-json/28891/2 "2025-04-03T05:50:46Z")

</div>

getting same error but Response Code is 200(OK)

JSONError: Unexpected token ‘\<’ at 1:1

^

 ![Error Postman](https://us1.discourse-cdn.com/getpostman/original/3X/e/c/ec6a24b220a66199fe7b155b9b59ccab1641057b.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 3, 2025, 8:19am UTC](https://community.postman.com/t/error-parsing-html-as-json/28891/3 "2025-04-03T08:19:12Z")

</div>

Hey @docking-module-met12 👋

Welcome to the Postman Community! :postman:

What’s the value of the `{{submission}}` variable? If it’s the same as the URL on the image that that’s going to return a HTML page.

The error is about the script trying to parse the HTML as JSON. If you click the `Body` tab, on the same line as the `Test Results` tab, you’ll see the response from that request.

I would reread the instructions again to check which method it’s telling you to use to check the status of your work. You’ve also converted your Personal “My Workspace” to a Public Workspace, I don’t believe that’s part of the instructions in the training.

---

<div class="post-metadata">

**Author:** ![docking-module-met12](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/docking-module-met12/32/32189_2.png) [@docking-module-met12](https://community.postman.com/u/docking-module-met12)\
**Post date:** [April 11, 2025, 3:56am UTC](https://community.postman.com/t/error-parsing-html-as-json/28891/4 "2025-04-11T03:56:06Z")

</div>

The Problem is Solved, i am copying wrong url to store in {submition}, i am trying to copying the collection link that opens my collection on browser it means the html page opened thats why this error is causing trouble.

So i copied the Via Api link and paste it in the {submition} and problem is solved.

And you are right about that no need to make workspace public i understand that. And also i have received the Postman student expert certification.

Thank You so much for your assistance i appreciates it.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 11, 2025, 9:18am UTC](https://community.postman.com/t/error-parsing-html-as-json/28891/5 "2025-04-11T09:18:13Z")

</div>

Closed on April 11, 2025, 9:18am UTC


