i5ting/imove

Unhandled Rejection (TypeError): Failed to fetch

i5ting opened this issue · 0 comments

←→1 of 2 errors on the page
Unhandled Rejection (TypeError): Failed to fetch
 5 stack frames were collapsed.
localSave
./packages/core/dist/core.esm.js:526
  523 | };
  524 | const localSave = (data) => {
  525 |     const localConfig = getLocalConfig();
> 526 |     fetch(`http://${localConfig.ip}:${localConfig.port}/api/save`, {
  527 |         method: 'POST',
  528 |         headers: { 'content-type': 'application/json' },
  529 |         body: JSON.stringify(data),
View compiled
handler
./packages/core/dist/core.esm.js:831
  828 | save: {
  829 |     keys: 'meta + s',
  830 |     handler(flowChart) {
> 831 |         localSave({ dsl: flowChart.toJSON() });
      | ^  832 |         return false;
  833 |     },
  834 | },
View compiled
(anonymous function)
./packages/core/dist/core.esm.js:2243
  2240 | const registerShortcuts = (flowChart) => {
  2241 |     Object.values(shortcuts).forEach((shortcut) => {
  2242 |         const { keys, handler } = shortcut;
> 2243 |         flowChart.bindKey(keys, () => handler(flowChart));
  2244 |     });
  2245 | };
  2246 | const createFlowChart = (container, miniMapContainer) => {
View compiled
 4 stack frames were collapsed.