# How can I fix this error JSONError: Unexpected token 'N' at

**URL:** <https://community.postman.com/t/how-can-i-fix-this-error-jsonerror-unexpected-token-n-at/57162>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [February 1, 2024, 4:58am UTC](https://community.postman.com/t/how-can-i-fix-this-error-jsonerror-unexpected-token-n-at/57162 "2024-02-01T04:58:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uyenthanh](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/uyenthanh/32/27287_2.png) [@uyenthanh](https://community.postman.com/u/uyenthanh)\
**Post date:** [February 1, 2024, 4:58am UTC](https://community.postman.com/t/how-can-i-fix-this-error-jsonerror-unexpected-token-n-at/57162/1 "2024-02-01T04:58:24Z")

</div>

![image 3](https://us1.discourse-cdn.com/getpostman/original/3X/b/8/b8e233a6bc6047733542d93d4ce19bb4c19b4fd3.png)  
 ![image 2](https://us1.discourse-cdn.com/getpostman/original/3X/d/c/dc602d052ae8f761b7efe11a7f97cb6bd1210a0d.png)  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/1/f/1fc9ddb01075ad4e844af40d7de91785cdb7f8f3.png)

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [February 1, 2024, 9:30am UTC](https://community.postman.com/t/how-can-i-fix-this-error-jsonerror-unexpected-token-n-at/57162/2 "2024-02-01T09:30:25Z")

</div>

Hi @uyenthanh. Welcome to the Postman Community.

Can you share more details about this error? I can’t find the error anywhere in the screenshots you shared. What were you trying to do when you got this error? Was this error presented in the response tab or in the Postman console? Please provide more details so we can better understand the issue.

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [February 1, 2024, 11:10am UTC](https://community.postman.com/t/how-can-i-fix-this-error-jsonerror-unexpected-token-n-at/57162/3 "2024-02-01T11:10:39Z")

</div>

You are getting a 404 not found status code.

Instead of a valid JSON response.

The URL is somehow incorrect. Either the initial URL, or the booking ID.

The first thing that you usually do in the tests tab is parse the JSON response into a JavaScript object.

Therefore the code in the tests tab that parse the response will fail due to the 404 status code.

If you are new to Postman and API’s, I would recommend a trip to the Learning Centre first.

[Overview | Postman Learning Center](https://learning.postman.com/docs/introduction/overview/)

Including the Postman Training links under “Resources”.

![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/b/3b763d56d66445f4c34eeb66c64631335559a741.png)

I would recommend the “Galaxy APIs 101” course first as it gets you used to the application features. This will also teach you some of the core debugging elements like the response tab, and the console log (which would have helped you diagnose this particular problem).

Then the “Galaxy Testing and Automation” course which teaches you how to assert the responses.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [March 2, 2024, 11:11am UTC](https://community.postman.com/t/how-can-i-fix-this-error-jsonerror-unexpected-token-n-at/57162/4 "2024-03-02T11:11:20Z")

</div>

Closed on March 2, 2024, 11:11am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
