Promise chain continues before inner promise is resolved
问题 Similar question to Promise resolve before inner promise resolved but I can't get it to work nontheless. Every time I think I understand promises, I prove myself wrong! I have functions that are written like this function getFileBinaryData () { var promise = new RSVP.Promise(function(resolve, reject){ var executorBody = { url: rootSite + sourceRelativeUrl + "/_api/web/GetFileByServerRelativeUrl('" + fileUrl + "')/$value", method: "GET", binaryStringResponseBody: true, success: function