Hey my Ionic app runs with ionic serve without any issues on localhost. But when I try to test my app on an real Device with Android Studio it shows the splash screen but then only an white screen.
With Chrome inspector i get these errors:
/runtime-es2015.js:1 Failed to load resource: the server responded with a status of 404 (OK)
/polyfills-es2015.js:1 Failed to load resource: the server responded with a status of 404 (OK)
/styles-es2015.js:1 Failed to load resource: the server responded with a status of 404 (OK)
/vendor-es2015.js:1 Failed to load resource: the server responded with a status of 404 (OK)
/main-es2015.js:1 Failed to load resource: the server responded with a status of 404 (OK)
/assets/icon/favicon.png:1 Failed to load resource: the server responded with a status of 404 (OK)
Before you run app in android studio you need to compile it. Run
ionic build --prod --source-map
npx cap copy
So it compiles and sync those files
Related
When creating a default react project or a default nextjs project I get 404's I've tried on different machines and there it worked without any issue, so I am wondering what is wrong with my mac's configuration.
What Id did:
Create a new nextjs project using "npx create-next-app"
Everything got installed correctly (I am using node v16.9.1, but had the same issue with 14.6.x)
when I now run: npm run dev in the newly created folder the server starts correctly on port 3000
when navigating to 0.0.0.0:3000 the page doesn't load and remains white however the console shows:
GET http://localhost:3000/_next/static/chunks/webpack.js?ts=1632035639230 net::ERR_ABORTED 404 (Not Found)
localhost/:1
GET http://localhost:3000/_next/static/chunks/main.js?ts=1632035639230 net::ERR_ABORTED 404 (Not Found)
localhost/:1
GET http://localhost:3000/_next/static/chunks/react-refresh.js?ts=1632035639230 net::ERR_ABORTED 404 (Not Found)
localhost/:1
GET http://localhost:3000/_next/static/chunks/pages/_app.js?ts=1632035639230 net::ERR_ABORTED 404 (Not Found)
localhost/:1
GET http://localhost:3000/_next/static/development/_buildManifest.js?ts=1632035639230 net::ERR_ABORTED 404 (Not Found)
localhost/:1
GET http://localhost:3000/_next/static/chunks/pages/index.js?ts=1632035639230 net::ERR_ABORTED 404 (Not Found)
localhost/:1
GET http://localhost:3000/_next/static/development/_ssgManifest.js?ts=1632035639230 net::ERR_ABORTED 404 (Not Found)
when trying a "naked" react app:
npx create-react-app react1
cd react1
npm starty
I get the following errors:
GET http://localhost:3001/%PUBLIC_URL%/manifest.json 400 (Bad Request)
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
favicon.ico:1
GET http://localhost:3001/%PUBLIC_URL%/favicon.ico 400 (Bad Request)
The attempt to bind "/%PUBLIC_URL%/manifest.json" in the workspace failed as this URI is malformed.
Probably both are not related, just wanted to add it in case they are.
I faced a similar issue with an existing project when I cloned the git repository to a Windows machine. I got the same error messages on browser console after running the app. It took me hours to figure out the cause of the problem.
It was that the project folder had a special character. Lets say it was Hello%20World. Renaming the folder to Hello-World fixed the problem. The "%" character was causing that issue.
I created a project with Blazor Webassembly using SignalR (VS 2019 - .Net Core 3.1).
When I run it from the development environment it works correctly, but when I publish it to IIS (the server project) and I try to run it, it shows me the following message:
Loading...
An unhandled error has occurred. Reload 🗙
The messages in the console are:
Failed to load resource: the server responded with a status of 404 (Not Found)
bootstrap.min.css:1
Failed to load resource: the server responded with a status of 404 (Not Found)
blazor.webassembly.js:1
Failed to load resource: the server responded with a status of 404 (Not Found)
app.css:1
Failed to load resource: the server responded with a status of 404 (Not Found)
bootstrap.min.css:1
Failed to load resource: the server responded with a status of 404 (Not Found)
app.css:1
I was having the same issue and the same resolution resolved it for me!
What I did was browse to the website where I hosted it, went into developer mode of the browser (F12), hovered over the error and looked at the path!
In my index.html file I had in the and just needed to remove the forward slash and it started working just fine!
Summarize of my problem:
I have create a website using MERN stack and deployed to AWS using docker.
when I refresh the domain page i.e http://discussion.sramanujan.com/ ,it works fine.
When I directly try to access the discussion url http://discussion.sramanujan.com/discussion , I get "Failed to load resource: the server responded with a status of 500 (Internal Server Error)"
Steps to repro the issue:
lauch the website http://discussion.sramanujan.com/
Refresh the browser [website should reload successfully]
Click on discussion button. [website url will change to http://discussion.sramanujan.com/discussion ]
Refresh the page.
Expected:
Page should load discussion page on refresh
Actual:
Got an error message as "Failed to load resource: the server responded with a status of 500 (Internal Server Error)".
Any idea as how to handle this issue?
More information:
1.host server port 80 is mapped to docker container port 3000.
2.Navigation through website is working fine.
/usr/src/api is my WORKDIR
Logs from server:(on refresh I get error 500)
you are also getting a 304 (Not modified) error on your website, try to enable javaScript, after that it should work
I am getting started with a server, following steps from here.
When running server however, I am getting the error :
Failed to load resource: the server responded with a status of 404 (Not Found)
manifest.json:1 Manifest: Line: 1, column: 1, Unexpected token.
I have tried installing reinstalling server packages, renaming files, changing url, switching locations.
I get 404 error for some files when running the nodejs app on http server error message is like below
Error: Request failed with status code 405
at createError (createError.js:16)
at settle (settle.js:18)
And there was no error when running on localhost.
The error message reports an error 405, which means the web server refused your action. http://www.checkupdown.com/status/E405.html
ie: you sent a POST method but your server doesn't allow it.
Check your web server's configuration and fix it accordingly.