Fail during deploy: npm run build

I need advice to debug deploy https://app.netlify.com/sites/confident-bohr-39b2be/deploys/5f5ffb3b7c180e8b67c1f4d2

Hi, @Cledimir, and welcome to the community site. :+1:

That deploy and site no longer exist. If there is another deploy you want us to troubleshoot, please let us know.

Hi Luke,
I excluded that project. I found that the error was importing JSON files.
However, now I am trying to fetch JSON data from a url. No error is returning, but the data is not displayed. I still don’t understand what’s going wrong. It work in localhost.
myschedules.netlify.app

Hi, @Cledimir, I’m seeing the 404s for that site for the two URLs below:

https://myschedules.netlify.app/schedules/json/OurSchedules.json
https://myschedules.netlify.app/schedules/json/UnavailableSchedules.json

Those two URLs are looking for these deployed files:

/schedules/json/OurSchedules.json
/schedules/json/UnavailableSchedules.json

However, if you download the deployed files, these are all the files in the current deploy:

/robots.txt
/index.html
/logo512.png
/asset-manifest.json
/manifest.json
/logo192.png
/precache-manifest.76f32021644a0f4ec38d0f5128c43235.js
/favicon.ico
/service-worker.js
/static/css/2.8d4cdce2.chunk.css.map
/static/css/main.4c0b410a.chunk.css
/static/css/2.8d4cdce2.chunk.css
/static/css/main.4c0b410a.chunk.css.map
/static/js/main.dbd2e542.chunk.js.map
/static/js/runtime-main.88f4ecf0.js.map
/static/js/runtime-main.88f4ecf0.js
/static/js/2.aac60932.chunk.js.map
/static/js/2.aac60932.chunk.js
/static/js/2.aac60932.chunk.js.license.txt
/static/js/main.dbd2e542.chunk.js

You can download the deploy on the deploy details page with but button shown in the screenshot below:

download-deploy-button-small

If you want those files to be published, they will need to be copied to the publish directory before the build is finished. Does your site build do that?

Hello Luke!
Forgive me for the inconvenience!
I had deleted the repository but I created it again.
My difficulty is in reading the data coming from JSON from:
http://ccsweb.com.br/schedules/json.
Observe the attached images. Localhost can access data, on Netlify I still can’t …
Thank you very much for your attention!

Cledimir C. Silva

can you post a link to the live site please?

Hello, the link is:

https://myschedules.netlify.app/

Tank u!

Cledimir

hi there, you have some incorrect paths in your code, which is why the file won’t load.

Hi there, problem solved!
tank you!

1 Like