Failed to load resource: the server responded with 404 - javascript

I can't solve my script problem. I have tried deploying my application on render.com however i keep getting this error for all of my javascript files. the application runs perfectly when I use VS Codes live server but once deployed this error appears. I would really appreciate if someone was able to help me resolve this issue. I have also linked images.
JS:
<script type="module" src="/public/JS/setupCart.js"></script>
<script type="module" src="/public/JS/app.js"></script>
Error:
setupCart.js:1 : Failed to load resource: the server responded with a status of404 ()
app.js:1 : Failed to load resource: the server responded with a status of404 ()
Live link to application here: https://guided-fashion.onrender.com
Github repo: https://github.com/ddelimond/Guided-Fashion

In similar, kind of scenario I would suggest you to do
Viewpage source (ctrl+U) while on your local where it is working fine.
Ctrl + click the app.js and setupcart.js link on your website and look at t
their address on the address bar of your browser.
Do the similar thing on your hosted application and compare the both
addresses and see if the folder exists on the both cases.

Related

I am unable to load Image in Javascript file and I am facing this issue - Failed to load resource: the server responded with a status of 404

Failed to load resource: the server responded with a status of 404 (Not Found)
I have made image src in html and I am trying to change that image on click from Javascript in a Javascript file. Can someone please help me please check image here for detail of the error?
typically its an error in the syntax of the URL it looks like you are trying to retrieve the images from the root directory of your site. You are also passing the port information through that URL btw that might be the issue too

REST API application does not work on domain

I moved my REST API web app to registered domain. On localhost is working as intended, however when deploying to server I get following error
Failed to load resource: the server responded with a status of 404 ()
I use JS to access REST API.
Localhost http://localhost:8080/EB-Software/apii/user-form/retrieve worked perfectly, whereas http://eb-software.uk/EB-Software/apii/user-form/retrieve leads to error above.
Please help
Update the URL like this, just remove EB-Software
http://eb-software.uk/apii/user-form/retrieve

Wordpress Envira Gallery doesn't load with forbidden status

When I load the webpage with Envira Gallery, it gives an error message
Failed to load resource: the server responded with a status of 403 (Forbidden)
with http://s3.kpost.ca/wp-content/plugins/envira-gallery/assets/css/responsivelyLazy.css?ver=1.7.2.
And it has some reference errors
can't find variable: responsivelyLazy.
How should I fix this problem?
Well it simply can't find the variable.. Either you are missing a file, you have permission issues or your path has a typo.. it is difficult to tell without seeing the site in question. Since this is a paid for wp plugin, I would recommend that you open a ticket here https://enviragallery.com/docs/.

Lightbox 2 Implementation

I have tried to implement and use the lightbox jquery function on this website however it is not working. I have looked at the documentation and structured the page as the site says yet I do now know why the plug in is not working
The lightbox resources (the CSS and JS files) aren't being loaded.
Thats why the lightbox isn't working.
Take a look at how did you reference these files, probably you referenced a wrong folder, or something...
You are getting two console errors regarding loading files:
http://162.243.219.66/dist/css/lightbox.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://162.243.219.66/dist/js/lightbox-plus-jquery.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
Make sure you are pointing to the correct files.

Image slider not appearing correctly in eBay

For: http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=160653524585&ssPageName=STRK:MESE:IT#ht_520wt_1398
When a thumbnail is clicked the new image appears below by 10-20 pixels. It works fine on private host but on eBay has this issue. Any fix or help greatly appreciated. Thanks
You need to show your code. All the thumbail images are missing.
The console gives a 404 errors on them...
Failed to load resource: the server responded with a status of 404
(Not Found) adventures_thumb.jpg
Failed to load resource: the server responded with a status of 404
(Not Found) stephens_thumb.jpg
Failed to load resource: the server responded with a status of 404
(Not Found) residential_thumb.jpg
Failed to load resource: the server responded with a status of 404
(Not Found) autism_thumb.jpg
Failed to load resource: the server responded with a status of 404
(Not Found) spiritual_thumb.jpg
You are also getting a bunch of similar errors. It appears like you are using relative paths within your script so it's looking for these things within a directory on eBay. I assume you are hosting these components yourself so you need to use full, absolute paths including the http://yourServer.com/yourPath/ on everything, all of your referenced assets.
(As a side-note, AFAIK, I thought eBay did not allow any scripts within their auction listings.)
EDIT:
Since posting my answer, the link to the auction listing referenced in the question has been changed. It's now a whole different thing, different content, different code, etc., rendering my comments above obsolete.
To the OP: This is a very bad practice, not only is this question and answer now useless to future readers, you've totally wasted my time.
It appears that the OP was edited while I was typing my original answer, therefore, there is no history of the original question. This is the auction as presented when I first answered.
EDIT 2:
As per eBay's HTML & JavaScript policy
You can’t use HTML or JavaScript that: Calls remote scripts and pages
automatically, such as JavaScript "includes" or "iframes."

Categories

Resources