promise.proxy is not an executable function