-
Notifications
You must be signed in to change notification settings - Fork 174
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
Workbox strategies uncaught no-response #176
Comments
Got the same thing happening in our code. |
Same thing here |
Same here. Is there anything I can do to fix it? |
Same problem, currently using |
Same problem, currently using 3.0.0-beta.16 |
This is not probably a bug related to PWA module but Workbox itself. Please provide a reproduction so at least we have a way to investigate more. Please note that if this error happening for making a request to 3rd party domain: https://developers.google.com/web/tools/workbox/guides/handle-third-party-requests |
I am also facing the exact same issue on my project. Honestly, there is no way to reproduce this error. I test my site like crazy all the time. So, often I open my site on a chrome incognito window with the dev tools open and console or network tab opened and then I load my site. In this scenario, many times it loads without that error and some time in the console I have that error which is being thrown by The crazy thing is if I do a soft or hard refresh of that page, that error is no longer there and I have no idea when it will come back again. If you want I can share my site URL if that what you need. |
We're seeing this issue too. A lighthouse audit of our site seems to trigger the error reliably. Lighthouse logs an error under "Best Practices" saying that errors were logged to the console. url: Our site is being hosted via now.sh and all content / file requests should be local (no 3rd-part CDN for images currently). |
Same issue here, shows with Lighthouse audit |
Error is consistently triggered by LightHouse in chrome devtools.
It's preventing me from hitting perfect 100's score 😭 |
I'm not sure, but placing '@nuxtjs/pwa' at the end (the last index) of "modules" array in nuxt.config.js solved the problem for me. can someone confirm? |
It does not work for me :( Even if you comment out the modules or put @nuxtjs/pwa in the first place. But in the early stages of development, there was no error. |
@petrovnn it's strange, since i update this line it's worked for me. ( here is the list of the other manipulations that I made:
my config: I hope it will help I take this opportunity to say that it would be magic if there were more examples of using options in the documentation or even a complete tutorial EDIT : the error reappeared, I do not understand what this is. If I update the page of my pwa the error disappears but it persists during the first load of my pwa :( |
Been getting the same error too when running trough Lighthouse in my browser. So I trough it maybe was something with the way chrome runs the audit, and when I tried using https://web.dev/measure/ The problem seem to have disappeared. |
@ch99q it's caused by the fact that Chrome is cleaning the previous data before new audit so all your new users will get this error. You can test it yourself by clearing cache and hard resetting the page |
@AndrewBogdanovTSS I realized my answer was incorrect the second I pressed 'comment', it was more running away from the problem. You are completely correct and it should be fixed so the users don't experience the issue. |
Easy Reproduction1) Go on a website using PWA module (https://lichter.io, https://marrec.io) Note : If you refresh twice while being online, the issue won't show up when going offline, which means the issue is related to Workbox Offline Strategy. Google Lighthouse Audits has an |
I had the same issue, my SW.js file was stock and looked like so:
I manually added the following to the bottom of the file:
And it no longer throws an error, at the expense of double downloading the first page a new user gets when first visiting the website / after clearing browser data. If your pages aren't too large, than this may be effective, though it is definitely not satisfactory. It is interesting to note here that the NetworkFirst workbox strategy does not throw errors. The CacheFirst strategy, on the other hand, does throw an error when it cannot find the resource in either cache or the network, which makes me think there is a problem registering the regex routes, though that seems unreasonable. My page speed did not change when using this hack, so it is viable for me for the time being. |
Hey. I had the same error. Following this StackOverflow response, I changed the caching strategy from CacheFirst to StaleWhileRevalidate and now everything works fine. As it appears the problem is that CacheFirst strategy doesn't work with opaque responses. |
@sefrem could you provide an example of your nuxt.config.js? I can't find an option where caching strategy can be set |
@AndrewBogdanovTSS |
Are there any fixes? I'm on
When I do get the error, the PWA doesn't work at all (the service worker seems to have an error), and the website doesn't work offline When I don't get the error, everything works fine, and the site loads offline around 75% of the time. I'm not able to reproduce this reliably. |
Already tried all of that, the only difference is that I use universal mode |
same issue!! |
My issue fixed by doing this : //package.json //nuxt.config.js |
UpdatesTracking down issue with wokbox debugger enabled in production:
|
Issue should be fixed/mitigated in v3.3.3 (via #417). After update and removing |
@pi0 |
@AndrewBogdanovTSS |
@ram-you shouldn't clientClaims be true by default? |
Yes I think. But the most important problem that you have to solve in first is the clean installation of the package (v3.3.3). |
@ram-you yes, it was an issue with our assets deployment. sw.js was cached incorrectly, after we refreshed a file and excluded it from cache - it's all got to normal! Thanks a lot for your help! 👍 |
I want to confirm that the update from @nuxtjs/pwa@3.1.2 to @nuxtjs/pwa@3.3.4 really fixed the console error here on Chrome Lighthouse. The app is with |
Hi @MSkred. If you check other network errors, there seems a CORS issue between (btw please use a new issue for this if still couldn't figure it out. seems unrelated here) |
@pi0 Ok I created a new issue but it's not a CORS issue because when I checkout on master with another packages version all works fine... |
@MSkred could you share a link to your new issue? |
Can someone help fix the problem, errors appear sometimes. The version I am using |
I tried the solutions menioned above comments but the issue is still appears. Does anyone found the solution/workaround? @jeffposnick any idea or Am I misssing something ? Thanks in advance. |
I'm also facing the same issue. @TapanDerasari Did you find the solution for it? |
Thanks to this comment, I have figured out what was causing my file |
Version
v3.0.0-beta.14
Reproduction link
https://jsfiddle.net/
Steps to reproduce
workbox-strategies.prod.js:1
Uncaught (in promise) no-response: no-response :: [{"url":"https://XXXX/admin/advertisements/create"}]
at a.makeRequest (https://cdn.jsdelivr.net/npm/workbox-cdn@4.1.1/workbox/workbox-strategies.prod.js:1:2145)
@ workbox-core.prod.js:1makeRequest
@ workbox-strategies.prod.js:1
What is expected ?
Caught error or page load at least
What is actually happening?
The webpage at https://XXXX/admin/advertisements/create might be temporarily down or it may have moved permanently to a new web address.
ERR_FAILED
Additional comments?
I have this error at soma of my subpages while using PWA.
How can i help, or send you something more to prevent this error. When i try to refresh the page, there is a Chrome error ERR_FAILED
The text was updated successfully, but these errors were encountered: