async function request(method, path, body, suppressRedBox) {
  try {
    const response = await sendRequest(method, path, body, suppressRedBox);
    return handleResponse(
      path,
      response
    );
  }
  catch (error) {
    if (!suppressRedBox) {
      logError(error, url(path), method);
    }
    throw error;
  }
}
Make arbitrary fetch request to a path relative to API root url
@param {String} method One of: get|post|put|delete
@param {String} path Relative path to the configured API endpoint
@param {Object} body Anything that you can pass to JSON.stringify
@param {Boolean} suppressRedBox If true, no warning is shown on failed request