nitrogen / simple_bridge

A simple, standardized interface library to Erlang HTTP Servers.
MIT License
112 stars 76 forks source link

Inets: module traverse failed #40

Closed fooflare closed 9 years ago

fooflare commented 9 years ago

I hope this time, I have checked everything I should (I think so). The handler error of yesterday have been fixed, but I still get this error in inets.log. In Firefox, I am getting each time I click a link, the line of the red panel in the top of the page all the time (in Chrome I can't see it):

[30/Oct/2014:10:40:01 +0100], module traverse failed: inets_simple_bridge_anchor:do => Error Type: exit Error: normal Stack trace: [{inets_simple_bridge_anchor,do,1, [{file, "src/inets_bridge_modules/inets_simple_bridge_anchor.erl"}, {line,16}]}, {httpd_response,traverse_modules,2, [{file,"httpd_response.erl"},{line,72}]}, {httpd_response,generate_and_send_response,1, [{file,"httpd_response.erl"},{line,40}]}, {httpd_request_handler,handle_response,1, [{file,"httpd_request_handler.erl"},{line,527}]}, {gen_server,handle_msg,5, [{file,"gen_server.erl"},{line,599}]}, {proc_lib,init_p_do_apply,3, [{file,"proc_lib.erl"},{line,237}]}]

choptastic commented 9 years ago

This was a side-effect of the inets sockets getting hijacked, but this error should no longer be spamming your inets.log file as of https://github.com/nitrogen/simple_bridge/commit/62ddd55e43ee3619395a3052409f6743e9b1eeb9

I'm still looking into the red prompt at the top of Nitrogen in firefox.

fooflare commented 9 years ago

About the prompt, this is what I get in Firebug:

The connection ws://localhost:8000/ was interrupted while the page was loading nitrogen.js (line 1195) this.$websocket = new WebSocket(ws_url);

Websockets disabled or disconnected nitrogen.js (line 896) Websockets Enabled nitrogen.js (line 896)

choptastic commented 9 years ago

https://github.com/nitrogen/nitrogen_core/commit/57e1ff86e1d0f3a32cc37c3fae75b07cf607da5e