Skip to content

TypeError: Failed to execute 'fetch' on Window': Illegal invocation #9

@inblossoms

Description

@inblossoms

I try to rewrite the fetch to fetch request error event to intercept, code 164 line.

However, this error occurs when initiating a fetch request: TypeError: Failed to execute 'fetch' on Window': Illegal invocation.

In the fetch . I try to through bind to fix this, but not ideal

window.fetch.bind(window, 'httas')
.then(res => console.log(res.json()))
.then(async res => console.log('====='))
.catch(error => console.log(error, '--=-=-=-=-=-='));

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions