Skip to content

"TypeError: Failed to fetch" from failed attempt to connect to remote lake #3125

Open
@philrz

Description

@philrz

Repro is with Zui commit 9d91dd3.

The attached video shows the same verification as in #1105 (comment), but in Dev mode which prominently displays unhandled errors as opposed to in production builds where they quietly go into the DevTools console. As this shows, when I attempt to connect to remote lake and it's accessible, an Unhandled Runtime Error "TypeError: Failed to fetch" is surfaced.

Repro.mp4

The full text of the Source and Call Stack shown:

Source
../packages/zed-js/src/client/client.ts (7:44) @ fetch

  5 | // @ts-ignore
  6 | // eslint-disable-next-line
> 7 | public fetch = (...args: any[]) => window.fetch(...args);
    |                                          ^
  8 | }
  9 | 
Call Stack
fetch
../packages/zed-js/src/client/base-client.ts (173:25)
request
../packages/zed-js/src/client/base-client.ts (186:28)
send
../packages/zed-js/src/client/base-client.ts (21:25)
version
src/js/flows/lake/buildLake.ts (17:35)
eval
../node_modules/redux-thunk/es/index.js (16:0)
dispatch
../node_modules/redux/es/redux.js (691:0)
dispatch
src/js/flows/lake/buildAndAuthenticateLake.ts (37:25)
eval
../node_modules/redux-thunk/es/index.js (16:0)
dispatch
src/js/components/LakeModals/LakeForm.tsx (103:39)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions