#Unknown JSON related problem

1 messages · Page 1 of 1 (latest)

minor siren
#

Ok, i'm receiving this from the Angular (v19) for some reason.

Can anybody tell me where should i look to found how to fix it?

thank you.

copper gazelle
#

When doing what? With which code?

minor siren
#

That's what i'm trying to know

#

i mean, i have done a lot of work, mostly some components, i can put an example form here but

#

it would be put the entire component

#

Where would you look at if you have this error? Services? Components?

#

If you have even a remote idea i'm willing to check it so to confirm can be that

#

I think i got it

#

Nevermind, the error just come back

copper gazelle
#

I would first look at the command you are executing to get this error. You know, be we don't, unless you say it. We know nothing about your project, and can't see your screen. So, you get this error when doing what?

minor siren
#

ng s

#

it happends, not straight after transpiling, but some time later

#

some seconds, maybie a minute later

#

The red come after, not inmediatly after, if that helps

#

Like, after some seconds, being the case i dont do anything

copper gazelle
#

OK. So you have SSR enabled, and probably SSG (prerendering) as well.
My guess is that the server is thus trying to prerender your pages, which probably implies making HTTP requests to some backend, and the backend seems to send back a response which is supposed to contain JSON, but instead contains the string "Not Found".

minor siren
#

As a matter of fact, it was that, thank you.

Apparently there was some tutorial remanent code i copy-paste meanwhile doing the other parts of the application, and that code was making a call to a service than doesn't have service every time the constructor run, i didn't need that so i remove it and it seems fine so far