debug error from curl