DEV Community

Moussa7704
Moussa7704

Posted on

Help me

salut j'ai besoin de l'aide je veux recuperer les données d'une api laravel mais il m'afficher Erreur [TypeError: Network request failed] je ne sais pas pourquoi si je avoir votre aide

Top comments (2)

Collapse
 
stevesims2 profile image
SteveSims2

Can you give any more information? I don't know what Laravel is (except for what I just googled and read), but I do web requests all of the time. Usually from Powershell to a TFS server.

Maybe I can give some possible suggestion if you post some information and screen shots. I am guessing from your error "TypeError: Network request failed", that the real problem might be hidden. I get that sort of thing all of the time when I try to make a request to a page with the wrong url. Behind the scenes, The server is spitting back some error html, which the client is trying to deserialize into a structure.

Since the error is coming back in html, it doesn't match the type for deserialization and you get a TypeError.

This is all just a guess. Not enough information. Just a shot in the dark for brainstorming.

Collapse
 
moussa7704 profile image
Moussa7704

hi i need help i want to retrieve data from a laravel api but it show me Error [TypeError: Network request failed] i dont know why if i have your help