These are chat archives for synrc/n2o

5th
Dec 2016
xiufan
@xiufan
Dec 05 2016 14:58
when i pass A large section of html elements and Chinese by postback and source ,i get Ranch listener http terminated in n2o_stream:websocket_handle/3 with reason: bad argument in call to erlang:binary_to_term(<<131,104,4,100,0,6,112,105,99,107,108,101,109,0,0,0,4,115,101,110,100,109,0,0,0,116,103,49,65,...>>, [safe]) in n2o_proto:upack/1 line 8
emulator Error in process <0.1502.0> with exit value: {[{reason,badarg},{mfa,{n2o_stream,websocket_handle,3}},{stacktrace,[{erlang,binary_to_term,[<<131,104,4,100,0,6,112,105,99,107,108,101,109,0,0,0,4,115,101,110,100,109,0,0,0,116,103,49,65,65,65,65,66,86,101,74,122,76,89,77,112,103,84,87,70,103,83,105,49,76,89,101,66,75,84,77,110,78,122,73,118,80,113,77,121,113,121,71,65,67,99,111,116,84,69,107,115,83,119,100,120,99,66,103,89,71,84,104,65,68,122,109,77,112,84,115,49,76,83,87,70,103,84,83,49,76,122,83,118,74,89,69,53,105,89,71,65,57,107,99,84,65,86,54,117,86,120,77,67,113,107,103,69,65,79,120,48,89,88,103,61,61,108,0,0,0,2,104,2,104,2,107,0,4,115,101,110,100,109,0,0,0,6,100,101,116,97,105,108,106,104,2,100,0,12,104,121,106,120,95,109,101,115,115,97,103,101,107,155,111,60,112,62,60,115,112,97,110,32,115,116,121,108,101,61,34,59,102,111,110,116,45,102,97,109,105,108,121,58,38,35,51,57,59,229,190,174,232,189,175,233,155,133,233,187,145,38,35,51,57,59,44,115,97,110,115,45,115,101,114,105,102,59,99,111,108,111,114,58,35,52,52,52,52,52,52,59,98,97,99,107,103,114,111,117,110,100,58,119,104,105,116,101,34,62,38,110,98,115,112,59,32,38,110,98,115,112,59,32,38,110,98,115,112,59,60,47,115,112,97,110,62,60,47,112,62,60,100,105,118,32,115,116,121,108,101,61,34,98,111,114,100,101,114,58,32,109,101,100,105,117,109,32,110,111,110,101,59,32,102,111,110,116,45,115,105,122,101,58,32,49,52,112,120,59,32,109,97,114,103,105,110,58,32,48,112,120,59,32,111,117,116,108,105,110,101,58,32,110,111,110,101,32,109,101,100,105,117,109,59,32,112,97,100,100,105,110,103,58,32,48,112,120,59,32,118,101,114,116,105,99,97,108,45,97,108,105,103,110,58,32,98,97,115,101,108,105,110,101,59,32,99,111,108,111,114,58,32,114,103,98,40,54,56,44,32,54,56,44,32,54,56,41,59,32,102,111,110,116,45,102,97,109,105,108,121,58,32,229,190,174,232,189,175,233,155,133,233,187,145,44,32,233,187,145,228,189,147,59,32,119,104,105,116,101,45,115,112,97,99,101,58,32,110,111,114,109,97,108,59,32,98,97,99,107,103,114,111,117,110,100,45,99,111,108,111,114,58,32,114,103,98,40,50,53,53,44,32,50,53,53,44,32,50,53,53,41,59,32,102,111,110,116,45,115,116,114,101,116,99,104,58,32,110,111,114,109,97,108,59,32,108,105,110,101,45,104,101,105,103,104,116,58,32,51,48,112,120,59,34,62,60,104,49,32,115,116,121,108,101,61,34,98,111,114,100,101,114,58,32,110,111,110,101,59,32,102,111,110,116,45,115,105,122,101,58,32,49,52,112,120,59,32,109,97,114,103,105,110,58,32,48,112,120,59,32,111,117,116,108,105,110,101,58,32,110,111,110,101,59,32,112,97,100,100,105,110,103,58,32,48,112,120,59,32,118,101,114,116,105,99,97,108,45,97,108,105,103,110,58,32,98,97,115,101,108,105,110,101,59,32,116,101,120,116,45,97,108,105,103,110,58,32,106,117,115,116,105,102,121,59,34,62,228,184,128,227,128,129,233,166,150,229,184,136,229,164,167,229,155,189,233,153,133,228,186,164,230,181,129,230,166,130,229,134,181,60,47,104,49,62,60,112,32,115,116,121,108,101,61,34,98,111,114,100,101,114,58,32,110,111,110,101,59,32,109,97,114,103,105,110,45,116,111,112,58,32,48,112,120,59,32,109,97,114,103,105,110,45,98,111,116,116,111,109,58,32,50,53,112,120,59,32,111,117,116,108,105,110,101,58,32,110,111,110,101,59,32,112,97,100,100,105,110,103,58,32,48,112,120,59,32,118,101,114,116,105,99,97,108,45,97,108,105,103,110,58,32,98,97,115,101,108,105,110,101,59,34,62,229,173,166,230,160,161,231,167,175,230,158,129,229,188,128,229,177,149,229,155,189,233,153,133,230,150,135,229,140,150,228,186,164,230,181,129,230,180,187,229,138,168,227,128,130,231,155,174,229,137,141,228,184,142,232,191,145,38,110,98,115,112,59,60,115,112,97,110,32,115,116,121,108,101,61,34,98,111,114,100,101,114,58,32,110,111,110,101,59,32,109,97,114,103,105,110,58,32,48,112,120,59,32,111,117,116,108,105,110,101,58,32,110,111,110,101,59,32,112,97,100,100,105,110,103,58,32,48,112,120,59,32,118,101,114,116,105,99,97,108,45,97,108,105,103,110,58,32,98,97,115,101,108,105,110,101,59,32,102,111,110,116,45,102,97,109,105,108,121,58,32,97,114,105,97,108,59,34,62,52,60,47,115,112,97,110,62,60,115,112,97,110,32,115,116,121,108,101,61,34,98,111,114,100,101,114,...>>,...],...},...]},...],...}
I tried to get rid of safe parameters, no effect