Open sgtoj opened 6 years ago
@sgtoj Do you mean TimeEntriesApi.timeEntriesIdDelete()
? If so then yes, thats a bit of an oversight. We shouldn't be attempting to parse something that isn't there. I can alter the DELETE
methods to fulfill the promise when returning no content.
@sowderca Definitely agree that is what should be done. That is, returning Promise.resolve()
.
TimeEntriesApi.timeEntriesPost()
throws error on success. ConnectWise doesn't return data onDELETE
methods. However, it seems some sort of JSON parsing of the body/data is being performed before returning to the requester. You should check for 204 status fore attempting to parse.Error Message and Stack