1

I'm unable to run a lighthouse report on my app due to a 404 error

enter image description here

When I look at the console I have a 404 error

enter image description here

I don't have this issue when running locally. Just in the cloud. The pages all load fine and I can navigate my app no problem, but that error popups up on every route I go in my app. I'm using azure storage blob to host my app and the document name and path is configured like this: enter image description here

I've been stuck on this for awhile so I appreciate any help!

user6680
  • 79
  • 6
  • 34
  • 78
  • are the routes getting formed on cloud correct, also as you have mentioned index.html as error document path, your storage serving index.html on 404? – Aakash Garg Jun 10 '20 at 06:41
  • I can go to /login or /listings by typing in address bar and it will take me to that route when index document name and error document path are set to index.html. If I set Error document path to 404.html, that's not the case. To be fair though, I don't see the 404.html file after running ng build in azure storage blob where static website files are or in dist folder from vscode. Here's how the folder structure looks like with 404.html file https://postimg.cc/BXJN7nm0 – user6680 Jun 10 '20 at 13:43
  • Maybe this helps : https://stackoverflow.com/questions/34415725/when-i-refresh-my-website-i-get-a-404-this-is-with-angular2-and-firebase/34416946#34416946 –  Jun 12 '20 at 04:30
  • That didn't work, but I tried the answer below it https://stackoverflow.com/a/50607952/4350389 and that seemed to do the trick. Thanks for pointing that post out! – user6680 Jun 13 '20 at 16:36
  • 1
    Typically light house request cannot perform such a request due to authentication checkpoints. because it required to be authenticate the request prior to send, which lighthouse dont do – CodeMind Jun 15 '20 at 06:50

0 Answers0