fullstackproltd / AspNetCoreSpa

Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
https://aspnetcorespa.fullstackpro.co.uk
MIT License
1.47k stars 464 forks source link

When run npm run start getting this error #222

Closed im-siva closed 6 years ago

im-siva commented 6 years ago

main.js:953 Error: Uncaught (in promise): HttpErrorResponse: {"headers":{"normalizedNames":{},"lazyUpdate":null},"status":404,"statusText":"Not Found","url":"http://localhost:4200/api/applicationdata","ok":false,"name":"HttpErrorResponse","message":"Http failure response for http://localhost:4200/api/applicationdata: 404 Not Found","error":"<!DOCTYPE html>\n<html lang=\"en\">\n\n<meta charset=\"utf-8\">\nError\n\n\n

Cannot GET /api/applicationdata
\n\n\n"} at resolvePromise (polyfills.js:3136) at resolvePromise (polyfills.js:3093) at polyfills.js:3195 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2743) at Object.onInvokeTask (vendor.js:41849) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2742) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (polyfills.js:2510) at drainMicroTaskQueue (polyfills.js:2917) at ZoneTask.push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (polyfills.js:2822) at invokeTask (polyfills.js:3862)

asadsahi commented 6 years ago

@im-siva are you running backend of this project?

By default when you try to run this project you need to run client in a separate window and then run backend with F5 command either in VS code or IDE. What you described sounds like backend isn't available.

asadsahi commented 6 years ago

closing for now. Awaiting confirmation.

RyanMH17 commented 5 years ago

Hi, I'm getting this same error and I'm not sure how to rectify it. Any help would be appreciated.

mohsinafridi commented 4 years ago

I am also facing same issue. backend is running. I am running angular app in vs code and backend in visual studio 2019.

global-error.service.ts:23 Error: Uncaught (in promise): HttpErrorResponse: {"headers":{"normalizedNames":{},"lazyUpdate":null},"status":404,"statusText":"Not Found","url":"http://localhost:4200/api/applicationdata","ok":false,"name":"HttpErrorResponse","message":"Http failure response for http://localhost:4200/api/applicationdata: 404 Not Found","error":"<!DOCTYPE html>\n<html lang=\"en\">\n\n<meta charset=\"utf-8\">\nError\n\n\n

Cannot GET /api/applicationdata
\n\n\n"} at resolvePromise (zone-evergreen.js:793) at resolvePromise (zone-evergreen.js:752) at zone-evergreen.js:854 at ZoneDelegate.invokeTask (zone-evergreen.js:400) at Object.onInvokeTask (core.js:39680) at ZoneDelegate.invokeTask (zone-evergreen.js:399) at Zone.runTask (zone-evergreen.js:168) at drainMicroTaskQueue (zone-evergreen.js:570) at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:485) at invokeTask (zone-evergreen.js:1596)

Any help?

luisserranopro commented 4 years ago

Hello I've got the same error and backed is run. Did you find any solution? Thanks