简体   繁体   中英

GET http://www.localhost:51644/users net::ERR_NAME_NOT_RESOLVED - $http angular request error

im trying to do a simple communication between asp.net localhost(visual studio express 2013) to an ionic webapp(currectly testing on my PC, not on phone) vi angular following by this tutorial: https://egghead.io/lessons/angularjs-http

but i keep getting this error: GET http://www.localhost:51644/users net::ERR_NAME_NOT_RESOLVED

i also get this error: GET file:///C:/Users/Matan/tabapp/www/cordova.js net::ERR_FILE_NOT_FOUND but i've been told its beacause im testing on my PC and not on the android device.

the same code in my project is the same code in the $http tutorial. any help will be welcomed.

Don't add WWW just use localhost:51644/users unless you have www.localhost set in you hosts file.

The 404 for cordova.js is normal in browser.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM