# \[Selenium\] Cookies Node throws java.io.IOException: Output closed

**URL:** <https://forum.knime.com/t/selenium-cookies-node-throws-java-io-ioexception-output-closed/84070>\
**Category:** Community Extensions\
**Tags:** palladian-selenium, bug\
**Created:** [October 24, 2024, 1:26pm UTC](https://forum.knime.com/t/selenium-cookies-node-throws-java-io-ioexception-output-closed/84070 "2024-10-24T13:26:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwiegand](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mwiegand/32/66896_2.png) [@mwiegand](https://forum.knime.com/u/mwiegand)\
**Post date:** [October 24, 2024, 1:26pm UTC](https://forum.knime.com/t/selenium-cookies-node-throws-java-io-ioexception-output-closed/84070/1 "2024-10-24T13:26:59Z")

</div>

Hi @qqilihq,

the IO Exception is back but this time not in Incognito but regular Chrome mode.

```auto
2024-10-24 15:21:14,243	ERROR Cookies 3:1126:0:1661:0:961 Execute failed: java.io.IOException: Output closed
Build info: version: '4.24.0', revision: '748ffc9bc3'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.5'
Driver info: driver.version: unknown

```

![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/9/d93cd772a247549580b4c6464f9768ac35655e40.png)  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/7/277a73f703c78f34b367a6f54f94c4e99d8f9d10.png)

**Thread Dump**  
[241024 Selenium Cookie IOO Exception threaddump-1729776253895.tdump.txt](https://forum.knime.com/uploads/short-url/7yALotv8t7a4KroCyIByLW0fPKj.txt) (110.6 KB)

No parallel execution. Chromoe WebDriver args are:

```auto
[0]	String	--stack_size=4096
[1]	String	--max_executable_size=4096
[2]	String --optimize_for_size
[3]	String	--max_old_space_size=4096
[4]	String	--disable-ipc-flooding-protection
[5]	String	--disable-search-engine-choice-screen
[6]	String	--disk-cache-size=0
[7]	String	--verbose
[8]	String	--disable-infobars
[9]	String	--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
[10]	String	--lang=en-US
[11]	String	--ignore-certificate-errors
[12]	String	--disable-blink-features=AutomationControlled

```

PS: Maybe the cause i not found in the cookie node but somewhere upstream as the network dump doesn’t return any resource

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/4/d/4ddb56fa3f8b3da174f0161f80fadf915e80a323.png)

But the WebDriver clearly got data and extracting Cookies using JS works.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/3/7/3706d749380ef2879b25acf40c363c0cb7ebda52.png)

Best  
Mike

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [October 25, 2024, 8:58pm UTC](https://forum.knime.com/t/selenium-cookies-node-throws-java-io-ioexception-output-closed/84070/2 "2024-10-25T20:58:34Z")

</div>

Thanks for the details - I would also expect the culprit be rather with the Network Dump. The IOException “Output closed” indeed suggests an issue with the network interceptors from the network dump nodes. (this is just an assumption for now)

Does this issue happen “out of the blue” within several iterations, or can you reproduce it reliably?

-Philipp

---

<div class="post-metadata">

**Author:** ![mwiegand](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mwiegand/32/66896_2.png) [@mwiegand](https://forum.knime.com/u/mwiegand)\
**Post date:** [October 25, 2024, 10:03pm UTC](https://forum.knime.com/t/selenium-cookies-node-throws-java-io-ioexception-output-closed/84070/3 "2024-10-25T22:03:01Z")

</div>

It is really erratic. Reenabling parallelism some chunks completed without an issue, others failed permanently once the issue got triggered. Parallelism I believe is less a cause or contributor but merely increases the chances of triggering it.

Let me know if you need anything or if I shall piing you in case I can reproduce it once for a remote debugging session.

---

<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:** [January 23, 2025, 10:03pm UTC](https://forum.knime.com/t/selenium-cookies-node-throws-java-io-ioexception-output-closed/84070/4 "2025-01-23T22:03:21Z")

</div>

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