lib/utils/segment.js/request
function request(url, payload) {
  return fetch(url, {
    headers: {
      'content-type': 'application/json',
    },
    method: 'POST',
    timeout: 1000,
    body: JSON.stringify(payload),
  })
    .then((response) => response.json())
    .then(() => BbPromise.resolve())
    .catch(() => BbPromise.resolve());
}