Cowboy errors but all good in Mochiweb

349 views
Skip to first unread message

Dominic DeWolfe

unread,
Feb 6, 2014, 10:18:45 AM2/6/14
to chica...@googlegroups.com
Hi guys...
I am getting strange errors when I try and use cowboy..on Cb v.0.8.9

[error] emulator Error in process <0.1170.0> on node 'cbeasyweb2@KingGeorgeEasy' with exit value: {function_clause,[{cowboy_http,quoted_string,[<<28 bytes>>,#Fun<cowboy_http.19.85016776>],[{file,"src/cowboy_http.erl"},{line,690}]},{cowboy_http,nonempty_list,2,[{file,"src/cowboy_http.erl"},{line,58}]},{cowboy_req,parse_header,4,[{file,"src/cowboy_req.erl"},{line...

2014-02-06 09:30:40.920 [error] <0.163.0> Ranch listener boss_http_listener had connection process started with cowboy_protocol:start_link/4 at <0.1170.0> exit with reason: {function_clause,[{cowboy_http,quoted_string,[<<"Z7beYRNAYoG1FhskmU7FMH9ws6U=">>,#Fun<cowboy_http.19.85016776>],[{file,"src/cowboy_http.erl"},{line,690}]},{cowboy_http,nonempty_list,2,[{file,"src/cowboy_http.erl"},{line,58}]},{cowboy_req,parse_header,4,[{file,"src/cowboy_req.erl"},{line,473}]},{cowboy_rest,if_none_match_exists,2,[{file,"src/cowboy_rest.erl"},{line,583}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,529}]}]}

everything seems to work fine with mochiweb. I am doing something a little different..I'm using angularjs with a controller in CB the redirects to /priv/static/app/partials/index.html. Has anyone come accross this before? I would really rather use Cowboy.




till haxor

unread,
Feb 6, 2014, 7:05:10 PM2/6/14
to chica...@googlegroups.com
in my case, i'm using CB 0.8.7 and throws me this errors:

14:55:51.811 [info] Starting http listener... on 8001

14:55:51.813 [error] CRASH REPORT Process <0.66.0> with 0 neighbours exited with reason: call to undefined function cowboy:start_http(b
oss_http_listener
, 100, [{port,8001}], [{env,[]}]) in gen_server:init_it/6 line 328
14:55:51.819 [error] Supervisor boss_sup had child boss_web_controller started with boss_web_controller:start_link([{ip,"0.0.0.0"},{por
t
,8001}]) at undefined exit with reason call to undefined function cowboy:start_http(boss_http_listener, 100, [{port,8001}], [{env,[]}]
) in context start_error
14:55:51.819 [error] gen_server boss_mq_sup terminated with reason: call to undefined function cowboy:start_http/4 from boss_web_contro
ller
:init/1 line 156
14:55:51.819 [error] CRASH REPORT Process <0.138.0> with 0 neighbours exited with reason: call to undefined function cowboy:start_http(
boss_http_listener
, 100, [{port,8001}], [{env,[]}]) in gen_server:terminate/6 line 747
14:55:51.819 [error] Supervisor {<0.117.0>,poolboy_sup} had child boss_session_controller started with boss_session_controller:start_li
nk
([{size,20},{max_overflow,40},{adapter,boss_session_adapter_mock},{session_exp_time,525600},{session_key,...}]) at undefined exit wit
h reason shutdown
in context shutdown_error
14:55:51.819 [error] gen_server boss_session_sup terminated with reason: call to undefined function cowboy:start_http/4 from boss_web_c
ontroller
:init/1 line 156

I don't know why this happens

Dominic DeWolfe

unread,
Feb 7, 2014, 9:16:05 AM2/7/14
to chica...@googlegroups.com
Well I guess is was some issue with my sessions. I cleaned my cache and everything seems to be working fine now.

jim rosenblum

unread,
Aug 4, 2014, 8:22:07 AM8/4/14
to chica...@googlegroups.com
I have this problem as well - I have a remote client posting to CB and I intermittently get this error. Just to be clear, a given client will sometimes get this error when doing a series of posts and sometimes will net get this error.

Any help would be much appreciated

  [error] <0.238.0> Ranch listener boss_https_listener had connection process started with cowboy_protocol:start_link/4 at <0.502.0> exit with reason: {function_clause,[{cowboy_http,quoted_string,[<<"HqAlq8PjsqnzoxbCKKnG/h9C8Kg=">>,#Fun<cowboy_http.19.85016776>],[{file,"src/cowboy_http.erl"},{line,690}]},{cowboy_http,nonempty_list,2,[{file,"src/cowboy_http.erl"},{line,58}]},{cowboy_req,parse_header,4,[{file,"src/cowboy_req.erl"},{line,473}]},{cowboy_rest,if_none_match_exists,2,[{file,"src/cowboy_rest.erl"},{line,583}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,529}]}]}

can2nac

unread,
Aug 4, 2014, 10:03:22 AM8/4/14
to chica...@googlegroups.com
if u have that stuff during ajax calls, then do u have appropriate crashes in console?

jim rosenblum

unread,
Aug 4, 2014, 11:07:22 AM8/4/14
to chica...@googlegroups.com
my client is nothing but an erlang process on another machine doing an https post - no ajax - via httpc:request(post,etc.).

for each message in a database, it constructs a json body and then posts it




--
You received this message because you are subscribed to a topic in the Google Groups "ChicagoBoss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chicagoboss/_CiwCWLWhk4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/1ce5ba48-0c47-4a6d-86c6-66d741446d3d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

can2nac

unread,
Aug 5, 2014, 11:09:14 AM8/5/14
to chica...@googlegroups.com
well, i had an issue like that with ajax requests and only in development mode

张晓泉

unread,
Dec 14, 2015, 9:20:35 AM12/14/15
to ChicagoBoss


I have encountered this problem
在 2014年2月7日星期五 UTC+8上午8:05:10,till haxor写道:

Dmitry Polyanovsky

unread,
Dec 28, 2015, 1:43:06 AM12/28/15
to ChicagoBoss
Use latest CB
Reply all
Reply to author
Forward
0 new messages