# " JSONError: No data, empty input at 1:1 ^" error message after executing scripts in the "Tests" tab

**URL:** <https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-error-message-after-executing-scripts-in-the-tests-tab/31537>\
**Category:** Help Hub\
**Created:** [January 13, 2022, 6:33pm UTC](https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-error-message-after-executing-scripts-in-the-tests-tab/31537 "2022-01-13T18:33:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yevg8504](https://avatars.discourse-cdn.com/v4/letter/y/ccd318/32.png) [@yevg8504](https://community.postman.com/u/yevg8504)\
**Post date:** [January 13, 2022, 6:33pm UTC](https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-error-message-after-executing-scripts-in-the-tests-tab/31537/1 "2022-01-13T18:33:13Z")

</div>

I have a POST request which creates an article, and in the “Tests” tab I take an article slug from the response, set it as the environment variable and then use it in “pm.sendRequest” for deleting the article. Everything works fine but after “pm.sendRequest” I get error message " JSONError: No data, empty input at 1:1 ^". As far as I get it “pm.response.json()” parses POST response body first and then parses DELETE response body as well, it is empty and I get this error. Is it possible to avoid this error somehow?

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

---

<div class="post-metadata">

**Author:** ![mark-wells](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@mark-wells](https://community.postman.com/u/mark-wells)\
**Post date:** [January 15, 2022, 10:44pm UTC](https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-error-message-after-executing-scripts-in-the-tests-tab/31537/2 "2022-01-15T22:44:34Z")

</div>

Hello @yevg8504

could you please show the response body from your POST request? It looks like the json that returns your `articles` POST action is empty.

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [January 19, 2022, 9:46pm UTC](https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-error-message-after-executing-scripts-in-the-tests-tab/31537/3 "2022-01-19T21:46:16Z")

</div>

I agree, the response body is likely not JSON (or invalid JSON).

@yevg8504 would you mind sharing the code that is breaking? The screenshot doesn’t seem to match what you have described.
