Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Getting Error: Request failed with status code 404 , attempting to access a route on my dev server

  • 3 réponses
  • 1 a ce problème
  • 1 vue
  • Dernière réponse par sambient

more options

I have no problem using Chrome , Brave browser to access pages on my dev server. My front end (React) is on localhost 3000, server is localhost 3001. This used to work, just two weeks ago. I'm on FF v95.0.2.

I've tried everything, headers in my index.html, cleared cookies and cache, various network settings, ran it in troubleshooting mode, restarted FF. I have all cors request enable on the server.

Anything I might be missing ?

edit: Found my mistake, had another app opened on the same port , apologies.

I have no problem using Chrome , Brave browser to access pages on my dev server. My front end (React) is on localhost 3000, server is localhost 3001. This used to work, just two weeks ago. I'm on FF v95.0.2. I've tried everything, headers in my index.html, cleared cookies and cache, various network settings, ran it in troubleshooting mode, restarted FF. I have all cors request enable on the server. Anything I might be missing ? '''edit: Found my mistake, had another app opened on the same port , apologies.'''

Modifié le par sambient

Solution choisie

I know almost nothing about React, so apologies if this is a dumb question, but is a route a URL? If so, does anything look strange in the Network Monitor if you open that tool before loading your page?

https://developer.mozilla.org/docs/Tools/Network_Monitor

Also, just in case, check the Web Console for any unusual messages:

https://developer.mozilla.org/docs/Tools/Web_Console

Lire cette réponse dans son contexte 👍 1

Toutes les réponses (3)

more options

Solution choisie

I know almost nothing about React, so apologies if this is a dumb question, but is a route a URL? If so, does anything look strange in the Network Monitor if you open that tool before loading your page?

https://developer.mozilla.org/docs/Tools/Network_Monitor

Also, just in case, check the Web Console for any unusual messages:

https://developer.mozilla.org/docs/Tools/Web_Console

more options

Note that in 95 support for privacy.file_unique_origin is removed (bug 1732052) and security.fileuri.strict_origin_policy will be removed in the future (bug 1730535).

more options

jscher2000 said

I know almost nothing about React, so apologies if this is a dumb question, but is a route a URL? If so, does anything look strange in the Network Monitor if you open that tool before loading your page? https://developer.mozilla.org/docs/Tools/Network_Monitor Also, just in case, check the Web Console for any unusual messages: https://developer.mozilla.org/docs/Tools/Web_Console

Yes, a route is basically a URL. Network monitor looked fine, outside of the 404. The problem was another app was running on the same port and with all the tabs and prompts open I missed it. Usually the app would complain about a port already being taken but for some reason in this case no red flags. Anyway, problem solved.