Error calling localhost API in . Net Core and React Native. Returns (Network Request File) error

Asked

Viewed 38 times

0

I’m trying to connect a request from my app using React Native calling this Api that was made on Dot Net Core.

inserir a descrição da imagem aqui

This is the desired result. inserir a descrição da imagem aqui But when access Android Virtual Device returns me an error Network Request File. I did several tests, changed the ip and port using ipconfig...

inserir a descrição da imagem aqui

I used the port 8080 and 8081 even so I was unsuccessful. Finally the last test I did was using the default ip of Android Virtual Device.

inserir a descrição da imagem aqui

All attempts resulted in error, what should I do to be able to call an Api locally from React Native? I did a test on 2 Api’s published that I have and these worked, the same error is local.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.