# Post Request - API successful but node continues executing till timeout

**URL:** <https://forum.knime.com/t/post-request-api-successful-but-node-continues-executing-till-timeout/12015>\
**Category:** KNIME Analytics Platform\
**Created:** [September 7, 2018, 10:52pm UTC](https://forum.knime.com/t/post-request-api-successful-but-node-continues-executing-till-timeout/12015 "2018-09-07T22:52:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshiell](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@sshiell](https://forum.knime.com/u/sshiell)\
**Post date:** [September 7, 2018, 10:52pm UTC](https://forum.knime.com/t/post-request-api-successful-but-node-continues-executing-till-timeout/12015/1 "2018-09-07T22:52:53Z")

</div>

Post Request is calling an API (Sendgrid) that sends an e-mail. The SendGrid API only sends a response header on success and not a body. I suspect that the node is waiting for a response body. Any ideas for a work around or thoughts on the issue?

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [September 10, 2018, 3:47pm UTC](https://forum.knime.com/t/post-request-api-successful-but-node-continues-executing-till-timeout/12015/2 "2018-09-10T15:47:23Z")

</div>

Hi @sshiell -

Sorry for the delayed response. I am guessing that the node is timing out on you - is that correct? If not, is there an error message you can share?

---

<div class="post-metadata">

**Author:** ![sshiell](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@sshiell](https://forum.knime.com/u/sshiell)\
**Post date:** [September 10, 2018, 7:19pm UTC](https://forum.knime.com/t/post-request-api-successful-but-node-continues-executing-till-timeout/12015/3 "2018-09-10T19:19:19Z")

</div>

Scott - Thanks for your reply. Yes the node is timing out and no error is provided. To be clear, the node does work in the sense that the e-mail is sent. It is must be waiting for something that it is “not coming back” finish execution.

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [September 10, 2018, 7:28pm UTC](https://forum.knime.com/t/post-request-api-successful-but-node-continues-executing-till-timeout/12015/4 "2018-09-10T19:28:49Z")

</div>

The node waits until the server closes the connection. If the server doesn’t do this, then it waits end eventually times out. It does not require an actual response body to be sent.

---

<div class="post-metadata">

**Author:** ![sshiell](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@sshiell](https://forum.knime.com/u/sshiell)\
**Post date:** [September 10, 2018, 7:57pm UTC](https://forum.knime.com/t/post-request-api-successful-but-node-continues-executing-till-timeout/12015/5 "2018-09-10T19:57:08Z")

</div>

Thor - Thanks for the clarification. I’ll investigate on the API Vendor side to try and understand why it is not closing the connection.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:30pm UTC](https://forum.knime.com/t/post-request-api-successful-but-node-continues-executing-till-timeout/12015/6 "2023-06-23T20:30:47Z")

</div>


