Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

329
Vistas
Angular2/4 : Fetch error: 401 Unauthorized

I have recently updated the project from angular2 to angular4 and updated typescript to version 2.2.2

now i am getting this error below when start the application. any ideas why ?

GET http://localhost/myWEb/Scripts/app/main.js 401 (Unauthorized)

(anonymous) @   zone.js:879
fetchFetch  @   system.src.js:1495
(anonymous) @   system.src.js:3421
ZoneDelegate.invoke @   zone.js:365
Zone.run    @   zone.js:125
(anonymous) @   zone.js:758
ZoneDelegate.invokeTask @   zone.js:398
Zone.runTask    @   zone.js:165
drainMicroTaskQueue @   zone.js:591



 Error: Fetch error: 401 Unauthorized
  Instantiating http://localhost/myWEb/Scripts/app/main.js
  Loading app/main
    at Scripts/vendor/systemjs/dist/system.src.js:1500:13 [<root>]
    at Scripts/vendor/zone.js/dist/zone.js:758:57 [<root>]
    at drainMicroTaskQueue (zone.js:591) [<root>]
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Check systemjs in package.json. It should be version 0.19.46 instead of anything newer. This problem raises in chrome, but with Edge everything fine even with latest systemjs

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda