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

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

Open
inblossoms opened this issue Oct 9, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@inblossoms
Copy link
Owner

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, '--=-=-=-=-=-='));

@inblossoms inblossoms added the bug Something isn't working label Oct 9, 2023
@inblossoms inblossoms self-assigned this Oct 9, 2023
@inblossoms inblossoms pinned this issue Oct 10, 2023
@inblossoms inblossoms unpinned this issue Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant