Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Rejection (TypeError): Failed to fetch #128

Open
i5ting opened this issue Dec 15, 2021 · 0 comments
Open

Unhandled Rejection (TypeError): Failed to fetch #128

i5ting opened this issue Dec 15, 2021 · 0 comments

Comments

@i5ting
Copy link
Owner

i5ting commented Dec 15, 2021

←→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.
@i5ting i5ting changed the title bug Unhandled Rejection (TypeError): Failed to fetch Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant