Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

UnityWebRequest.Abort() throw Curl error 23: Failed writing body

Discussion in 'Editor & General Support' started by Luchunpen_0, Dec 1, 2020.

  1. Luchunpen_0

    Luchunpen_0

    Joined:
    Aug 7, 2014
    Posts:
    58
    Hi there!

    When I trying to donwload big file by UnityWebRequest.SendRequest and abort downloading process it throw "Curl error 23 : Failed writing body (0 != 1400)" and I cant catch and handle this error by try/catch.
    Tried in new project - same things.

    Unity 2020.1.9f/13f, Windows editor (maybe on all platforms).
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,640
    This is just an error printed to log, not something that you can catch. When you call Abort(), it is possible to get one of such errors depending on at what point the abort request was noticed and fulfilled.
    It's safe to ignore this.
     
  3. Luchunpen_0

    Luchunpen_0

    Joined:
    Aug 7, 2014
    Posts:
    58
    Got it, thanks !
    Another question: can I suppress this error in Unity Editor, cause it paused application (I need error pausing in another cases) ? Maybe there is some #define directives ?
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,640
    Unfortunately, no.
     
  5. SplenShepard

    SplenShepard

    Joined:
    Aug 24, 2019
    Posts:
    16
    Would really be great if we could downgrade this alert to a Warning or something, especially when its an essential part of the app to use Abort() and your QA team is getting hammered with red text in developer test builds.
     
    simonm_unity283 likes this.
  6. PhatCatDev11

    PhatCatDev11

    Joined:
    Apr 10, 2021
    Posts:
    16