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

mDataHandler failed to consume data #708

Open
xmuSistone opened this issue Apr 6, 2022 · 1 comment
Open

mDataHandler failed to consume data #708

xmuSistone opened this issue Apr 6, 2022 · 1 comment

Comments

@xmuSistone
Copy link

Hello,

i got this error:
java.lang.RuntimeException: mDataHandler failed to consume data, yet remains the mDataHandler.
at com.koushikdutta.async.Util.emitAllData(Util.java:39)
at com.koushikdutta.async.AsyncNetworkSocket.onReadable(AsyncNetworkSocket.java:160)
at com.koushikdutta.async.AsyncServer.runLoop(AsyncServer.java:878)
at com.koushikdutta.async.AsyncServer.run(AsyncServer.java:726)
at com.koushikdutta.async.AsyncServer.access$800(AsyncServer.java:46)
at com.koushikdutta.async.AsyncServer$8.run(AsyncServer.java:680)

in my case, i called setMultipartCallback :
MultipartFormDataBody body = (MultipartFormDataBody) request.getBody();
body.setMultipartCallback(part -> {
DataHolder dataHolder = new DataHolder(part.getName());
body.setDataCallback(dataHolder);
});

after data arrived and completed, i called this:
response.send("application/json; charset=utf-8", result); //AsyncHttpServerResponse

can you please figure out what my mistake is?

@elite-mob
Copy link

bug

Not everytime, but it's happening to me as well sometimes and it's crashing the application...

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

2 participants