Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this a bug? #1

Open
TSNCM opened this issue Aug 14, 2024 · 0 comments
Open

Is this a bug? #1

TSNCM opened this issue Aug 14, 2024 · 0 comments

Comments

@TSNCM
Copy link

TSNCM commented Aug 14, 2024

This is what happens when I create an HTTP server using skHttp, and if I frequently refresh the page in the browser by pressing F5, this error appears in the console.

[21:37:26 WARN]: [Skript] Plugin Skript v2.9.1-nightly-54f15c9 generated an exception while executing task 572334
java.lang.RuntimeException: java.io.IOException: Broken pipe
at SkHttp.jar/lol.aabss.skhttp.objects.server.HttpExchange.respond(HttpExchange.java:59) ~[SkHttp.jar:?]
at SkHttp.jar/lol.aabss.skhttp.elements.server.effects.EffExchangeRespond.execute(EffExchangeRespond.java:64) ~[SkHttp.jar:?]
at Skript.jar/ch.njol.skript.util.AsyncEffect.lambda$walk$1(AsyncEffect.java:60) ~[Skript.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.io.IOException: Broken pipe
at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method) ~[?:?]
at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:62) ~[?:?]
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:137) ~[?:?]
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:102) ~[?:?]
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:58) ~[?:?]
at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:542) ~[?:?]
at jdk.httpserver@21.0.3/sun.net.httpserver.Request$WriteStream.write(Request.java:390) ~[jdk.httpserver:?]
at jdk.httpserver@21.0.3/sun.net.httpserver.FixedLengthOutputStream.write(FixedLengthOutputStream.java:81) ~[jdk.httpserver:?]
at java.base/java.io.FilterOutputStream.write(FilterOutputStream.java:110) ~[?:?]
at jdk.httpserver@21.0.3/sun.net.httpserver.PlaceholderOutputStream.write(ExchangeImpl.java:462) ~[jdk.httpserver:?]
at SkHttp.jar/lol.aabss.skhttp.objects.server.HttpExchange.respond(HttpExchange.java:55) ~[SkHttp.jar:?]
... 8 more

and this:

[21:38:37 WARN]: [Skript] Plugin Skript v2.9.1-nightly-54f15c9 generated an exception while executing task 572982
java.lang.RuntimeException: java.io.IOException: headers already sent
at SkHttp.jar/lol.aabss.skhttp.objects.server.HttpExchange.respond(HttpExchange.java:59) ~[SkHttp.jar:?]
at SkHttp.jar/lol.aabss.skhttp.elements.server.effects.EffExchangeRespond.execute(EffExchangeRespond.java:64) ~[SkHttp.jar:?]
at Skript.jar/ch.njol.skript.util.AsyncEffect.lambda$walk$1(AsyncEffect.java:60) ~[Skript.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.jar:1.21-130-b1b5d4c]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.io.IOException: headers already sent
at jdk.httpserver@21.0.3/sun.net.httpserver.ExchangeImpl.sendResponseHeaders(ExchangeImpl.java:206) ~[jdk.httpserver:?]
at jdk.httpserver@21.0.3/sun.net.httpserver.HttpExchangeImpl.sendResponseHeaders(HttpExchangeImpl.java:85) ~[jdk.httpserver:?]
at SkHttp.jar/lol.aabss.skhttp.objects.server.HttpExchange.respond(HttpExchange.java:53) ~[SkHttp.jar:?]
... 8 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant