# Request fails while running inside flow

**URL:** <https://community.postman.com/t/request-fails-while-running-inside-flow/59897>\
**Category:** Help Hub\
**Tags:** postman-flows\
**Created:** [April 12, 2024, 4:28pm UTC](https://community.postman.com/t/request-fails-while-running-inside-flow/59897 "2024-04-12T16:28:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahoytrts](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@ahoytrts](https://community.postman.com/u/ahoytrts)\
**Post date:** [April 12, 2024, 4:28pm UTC](https://community.postman.com/t/request-fails-while-running-inside-flow/59897/1 "2024-04-12T16:28:51Z")

</div>

I’m running into a problem executing a request from within a flow.  
The request runs successfully when run in isolation. However, when I try to incorporate that request into a flow I see an error appear in the footer of the Send Request block (see image). It says “Unexpected token ‘q’, ‘qpvun/c/ec’ is not valid json”

The text it is quoting in the error text is actually the text of the response itself. And I can see as much in the console. Clearly that is not json. I suspect that the problem occurs because the Content-Type header of the response indicates that it is “application/json” (see image), so postman is trying to parse it.

I don’t have the ability to change the Content-Type of the response of the API in question. Is there a way that the request can continue and the response body be available?

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/9/497975831b2a1afd6bae4eccccafceee4e17cc1a.png)  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/9/f9a6b40281b0f6634da8dd848fcf54cba87b960e.png)

---

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [April 12, 2024, 10:26pm UTC](https://community.postman.com/t/request-fails-while-running-inside-flow/59897/2 "2024-04-12T22:26:52Z")

</div>

Hi @ahoytrts

Welcome to the forums!

Is the API returning JSON in the success case?

---

<div class="post-metadata">

**Author:** ![ahoytrts](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@ahoytrts](https://community.postman.com/u/ahoytrts)\
**Post date:** [April 15, 2024, 1:07pm UTC](https://community.postman.com/t/request-fails-while-running-inside-flow/59897/3 "2024-04-15T13:07:30Z")

</div>

@flows-daniel It isn’t returning valid json. It is just a plain string.

---

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [April 15, 2024, 6:33pm UTC](https://community.postman.com/t/request-fails-while-running-inside-flow/59897/4 "2024-04-15T18:33:07Z")

</div>

@ahoytrts

If you hover over the block you’ll get a gear icon on the top and you can force change it’s type to text. Auto will just respect the headers.

 ![Screenshot 2024-04-15 at 11.31.32 AM](https://us1.discourse-cdn.com/getpostman/original/3X/a/e/aeb6c8a85c985f1ca7aca6150d3dbc3947821922.png)

---

<div class="post-metadata">

**Author:** ![ahoytrts](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@ahoytrts](https://community.postman.com/u/ahoytrts)\
**Post date:** [April 16, 2024, 3:20pm UTC](https://community.postman.com/t/request-fails-while-running-inside-flow/59897/5 "2024-04-16T15:20:46Z")

</div>

That was almost exactly what I needed. Weirdly, the gear icon wasn’t available in the hover menu on the block. For me, it appears in the button bar on the right side of the window. Possibly a version difference?

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

In any case. It is now working.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![lunar-module-1](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/lunar-module-1/32/26132_2.png) [@lunar-module-1](https://community.postman.com/u/lunar-module-1)\
**Post date:** [April 17, 2024, 2:55am UTC](https://community.postman.com/t/request-fails-while-running-inside-flow/59897/6 "2024-04-17T02:55:34Z")

</div>

@ahoytrts are you using the Postman App? If so, you might want to update, I believe this was a recent change. I can track down the exact version if you want to upgrade.

---

<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:** [April 20, 2024, 2:56am UTC](https://community.postman.com/t/request-fails-while-running-inside-flow/59897/7 "2024-04-20T02:56:30Z")

</div>

Closed on April 20, 2024, 2:56am UTC

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