Error Parsing HTML as JSON

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

getting same error but Response Code is 200(OK)

JSONError: Unexpected token ‘<’ at 1:1

^

Hey @docking-module-met12 :waving_hand:

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.

1 Like

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.

1 Like