Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A AndroidAsync
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 333
    • Issues 333
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Koushik Dutta
  • AndroidAsync
  • Issues
  • #708
Closed
Open
Issue created Apr 06, 2022 by stone@xmuSistone

mDataHandler failed to consume data

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?

Assignee
Assign to
Time tracking