javascript - Require.js timeout with Charles proxy -


code works absolutely fine when charles proxy running in background, following error in chrome , firefox. charles proxy running @ default settings.

uncaught error: load timeout modules: jquery,handlebars http://requirejs.org/docs/errors.html#timeout require.js:8
f require.js:8
c require.js:13
(anonymous function)

os: os x 10.8.4 charles: v 3.7  chrome : 28.0.1500.71 firefox : 22.0  

turns out issue related hosts file. requirejs throwing timeout because localhost taking long resolve. works fine after updating hosts file this:

## # host database # # localhost used configure loopback interface # when system booting.  not change entry. ## 127.0.0.1 localhost.localdomain   127.0.0.1 localhost  127.0.0.1 username.lmuk.local 255.255.255.255  broadcasthost ::1              localhost  fe80::1%lo0      localhost 

more information available here.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -