Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Editor 2019.4.30f1 frequently reports: "Curl error 42: Callback aborted"

Discussion in 'Editor & General Support' started by ScottAdams, Sep 30, 2021.

  1. ScottAdams

    ScottAdams

    Joined:
    Nov 23, 2016
    Posts:
    72
    It has a red Error icon and reports in the console window:
    Curl error 42: Callback aborted

    It does this at random times and doesn't appear to cause any issues.

    Anyone know what is going on?
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,722
    It means something in your project makes web requests and aborts them afterwards.
     
    farooqi and ScottAdams like this.
  3. ScottAdams

    ScottAdams

    Joined:
    Nov 23, 2016
    Posts:
    72
    Thanks!

    I guess it is time to fire up wireshark.
     
  4. vignesh211

    vignesh211

    Joined:
    Feb 8, 2019
    Posts:
    13
    What's the reason that makes unity aborts them afterwards.

    My project seems to have this error a lot.
     
  5. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,251
    Why is this an 'error' (like all curl reports) that therefore pauses your editor project if you (as most people would) have 'Error Pause' enabled?
    There is simply no reason for the editor to throw any 'curl' errors.
    And calling a valid function (Abort) on a web call is not a reason to throw an error!!!
     
  6. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,722
    In newer version we filter out curl errors to not show such common types as abort.
    The reason to print them is help investigate web request failures. Investigating why web request fail is very painful and low level error from curl can give a pointer, that's why we started showing them.
     
  7. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,251
    Yes you can show a warning, but not an error IMHO
     
    chuckyluv869 likes this.