Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios error network error

// WHEN WORKING WITH LOCALHOST
/* The thing is, that iOS is running in a simulator and Android is running in an emulator.
The localhost is pointing to the environment in which the code is running. 
The emulator emulates a real device while the simulator is only imitating the device.
Therefore the localhost on Android is pointing to the emulated Android device. 
And not to the machine on which your server is running.
The solution is to replace localhost with the IP address of your machine. */
Source by github.com #
 
PREVIOUS NEXT
Tagged: #axios #error #network #error
ADD COMMENT
Topic
Name
5+4 =