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

Why can't I download when I open the chrome debugging tool? #136

Closed
wang1212 opened this issue Dec 18, 2019 · 3 comments
Closed

Why can't I download when I open the chrome debugging tool? #136

wang1212 opened this issue Dec 18, 2019 · 3 comments

Comments

@wang1212
Copy link

  • environment
    Chrome Version: 80.0.3970.5 (dev)

Sorry, this may be an obvious problem, but I don't quite understand.

I used your library in my project, but when I open Chrome Developer Tools, the console will get a 404 exception and the file cannot be downloaded. Then, I tried to copy your sample code locally, and opened a local server, and found that the same problem occurs. Fortunately, I accidentally closed the developer tools in Chrome and found that the problem disappeared and everything worked fine in my project.

@jimmywarting
Copy link
Owner

hmm, weird...

well, the streamsaver.js is heavily based on service workers to accomplish the streaming download (emulating what a server dose to save files and spitting out chunks of data)

so my best guess would be that you have some kind of "update on reload" or "bypass for network" or something

Skärmavbild 2019-12-18 kl  11 24 35

@jimmywarting
Copy link
Owner

eventually i would like to be able to use WICG/native-filesystem api #73 to avoid service workers

i have experimented with it in canary but it doesn't feel ready for implementing yet...

this is also an issue that i would like to be solved before even thinking of implementing it WICG/file-system-access#80

@wang1212
Copy link
Author

First of all, thank you very much for your reply.

I did use Google Workbox's webpack plugin to implement the PWA application, so I turned on the update on reload and bypass for network options in Chrome's developer tools.

However, after restarting my computer this morning, I found that the problem has disappeared, and it seems to be caused by other unknown reasons.

Finally, thank you for the library you provided to help me solve the problem of file download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants