Do you mean locally like this: (__dirname + ‘/views/index.html’)?
I have loaded the file to the assets to my project so thought I could read it from there? That when i am getting this error. I have taken that URL for the JSON file and put it into a browser and the JSON file is displayed.
I have loaded a JS file to be used in my HTML page for script and it brings it in from the ASSETS just fine.
So going forward on this test project - I need to be able to read a JSON file from an external server. I guess similar to what I am trying to do here - read the file using the URL for the fie on the Glitch server. This JSON file will be replace once a day on an external server.