emqx/emqx-bridge-mqtt

bridge crash on gzip data

nrmohan opened this issue · 0 comments

while bridging eqmx with iot core. the bridge stops soon after starting with the below error. our payload is gzip of json.

2022-04-08T17:02:20.419643+00:00 [error] crasher: initial call: emqx_bridge_worker:init/1, pid: <0.6102.4>, registered_name: emqx_bridge_worker_aws, exit: {{noproc,{gen_statem,call,[<0.6138.4>,{publish,{mqtt_msg,2,false,false,undefined,<<"test_topic">>,#{},<<31,139,8,0,0,0,0,0,0,0,237,61,105,111,228,54,178,127,165,225,79,239,1,211,189,186,143,249,198,150,216,221,202,232,232,232,104,143,179,179,16,122,199,253,38,198,58,118,96,123,146,13,130,252,247,199,75,18,41,145,146,122,39,246,142,7,113,48,64,108,149,138,197,186,89,44,82,191,95,60,61,...>>}},infinity]}},[{gen,do_call,4,[{file,"gen.erl"},{line,220}]},{gen_statem,call_dirty,4,[{file,"gen_statem.erl"},{line,684}]},{emqx_bridge_mqtt,send,3,[{file,"emqx_bridge_mqtt.erl"},{line,146}]},{emqx_bridge_worker,do_send,3,[{file,"emqx_bridge_worker.erl"},{line,522}]},{emqx_bridge_worker,pop_and_send_loop,2,[{file,"emqx_bridge_worker.erl"},{line,506}]},{emqx_bridge_worker,connected,3,[{file,"emqx_bridge_worker.erl"},{line,347}]},{gen_statem,loop_state_callback,11,[{file,"gen_statem.erl"},{line,1194}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}, ancestors: [emqx_bridge_mqtt_sup,<0.6100.4>], message_queue_len: 2, messages: [{disconnected,<0.6138.4>,{shutdown,ssl_closed}},{'EXIT',<0.6138.4>,{shutdown,ssl_closed}}], links: [<0.6101.4>], dictionary: [], trap_exit: true, status: running, heap_size: 46422, stack_size: 28, reductions: 61520; neighbours: 2022-04-08T17:02:20.420291+00:00 [error] Supervisor: {local,emqx_bridge_mqtt_sup}. Context: child_terminated. Reason: {noproc,{gen_statem,call,[<0.6138.4>,{publish,{mqtt_msg,2,false,false,undefined,<<"test_topic">>,#{},<<31,139,8,0,0,0,0,0,0,0,237,61,105,111,228,54,178,127,165,225,79,239,1,211,189,186,143,249,198,150,216,221,202,232,232,232,104,143,179,179,16,122,199,253,38,198,58,118,96,123,146,13,130,252,247,199,75,18,41,145,146,122,39,246,142,7,113,48,64,108,149,138,197,186,89,44,82,191,95,60,61,28,...>>}},infinity]}}. Offender: id=aws,pid=<0.6102.4>.