# JSONError: No data, empty input at 1:1 with empty Scripts

**URL:** <https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-with-empty-scripts/89543>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [March 24, 2026, 5:40pm UTC](https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-with-empty-scripts/89543 "2026-03-24T17:40:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanjavierrg.gfi](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@juanjavierrg.gfi](https://community.postman.com/u/juanjavierrg.gfi)\
**Post date:** [March 24, 2026, 5:40pm UTC](https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-with-empty-scripts/89543/1 "2026-03-24T17:40:56Z")

</div>

Hi everyone,  
I’m encountering a strange issue in Postman and I haven’t been able to find a clear explanation for it.

I’m making a simple **GET** request to an internal API.  
The request works correctly and the server returns:

- **HTTP 206 Partial Content** (this is expected)

- **Content-Length: 20**

- **No body**

- **Content-Encoding:** gzip

- Response body visually empty in Postman

Example response headers:

```auto
HTTP/1.1 206 Partial Content
Content-Encoding: gzip
Content-Length: 20
Connection: Keep-Alive

```

However, in the **Test** tab, Postman _always marks the request as failed_, showing this error:

```auto
JSONError: No data, empty input at 1:1

```

This happens **even if I delete all test code and leave the Test script completely empty**.

It seems like Postman attempts to automatically parse the response body as JSON because of the gzip encoding, even though the decompressed body is empty…and the Test tab fails before my test script even runs.

I can’t modify backend behaivour.

I tried forcing the server not to send compressed responses by explicitly adding:

```auto
Accept-Encoding: identity

```

This worked as expected on the network side (the server stopped sending gzip and returned:

```auto
Content-Length: 0
Content-Encoding: (absent)

```

However, the behavior in Postman **remained exactly the same** :

- Response is 206 OK

- Body is 100% empty

- Script is empty

- Test Results failing with “JSONError: No data, empty input at 1:1“

So disabling gzip did **not** resolve the issue.

Anybody can help me with this? Sorry for my english

---

<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:** [March 24, 2026, 5:59pm UTC](https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-with-empty-scripts/89543/2 "2026-03-24T17:59:33Z")

</div>

Hey @juanjavierrg.gfi 👋

Welcome to the Postman Community! :postman:

Could you check to see if you have anything in the Collection or Folder level scripts?

 ![Screenshot 2026-03-24 at 17.56.56](https://us1.discourse-cdn.com/getpostman/original/3X/3/8/380d3348a5a892e0165d3cfe15b8066986bba54d.png)

If you have something there that is trying to parse the response as JSON, this would show that error if the response is empty.

 ![Screenshot 2026-03-24 at 17.56.45](https://us1.discourse-cdn.com/getpostman/original/3X/e/a/eae6d8c70f08f27cc99dd4524a6824a9676a695e.png)

---

<div class="post-metadata">

**Author:** ![juanjavierrg.gfi](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@juanjavierrg.gfi](https://community.postman.com/u/juanjavierrg.gfi)\
**Post date:** [March 24, 2026, 6:05pm UTC](https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-with-empty-scripts/89543/3 "2026-03-24T18:05:28Z")

</div>

Yep, that was it.  
I already had a test defined at the collection level, and it was driving me crazy.

---

<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:** [March 24, 2026, 7:00pm UTC](https://community.postman.com/t/jsonerror-no-data-empty-input-at-1-1-with-empty-scripts/89543/4 "2026-03-24T19:00:00Z")

</div>

Closed on March 24, 2026, 7:00pm UTC


