print error stack on api failures