fetching failed error code on debug log