K2InformaticsGmbH / smpp_parser

A parser for SMPP protocol PDUs
Apache License 2.0
3 stars 1 forks source link

bad argument: list_to_binary([#{}]) (1) #40

Closed walter-weinmann closed 6 years ago

walter-weinmann commented 6 years ago
=== Reason: bad argument
  in function  list_to_binary/1
     called as list_to_binary([#{}])
  in call from smpp:internal2json/2 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 30)
  in call from maps:'-map/2-lc$^0/1-0-'/2 (maps.erl, line 232)
  in call from maps:map/2 (maps.erl, line 232)
  in call from smpp:decode_bin/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 191)
  in call from smpp_test_utils:encode_decode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/src/smpp_test_utils.erl, line 41)
  in call from compacted_query_broadcast_sm_resp_SUITE:test_compacted/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/generated/ct/compacted_query_broadcast_sm_resp_SUITE.erl, line 49)
  in call from test_server:ts_tc/3 (test_server.erl, line 1546)

Example:

 {"query_broadcast_sm_resp_issue_40",
  "00 00 00 5C 80 00 01 12 00 00 00 00 00 00 00 01 74 68 69 73 5F 63 6F 75 6C "
  "64 5F 62 65 5F 61 5F 6D 65 73 73 61 67 65 5F 69 64 00 04 27 00 01 02 06 06 "
  "00 23 01 6D 79 5F 62 72 6F 61 64 63 61 73 74 5F 61 72 65 61 5F 69 64 65 6E "
  "74 69 66 69 65 72 5F 30 30 30 31 30 06 08 00 01 5A"}
walter-weinmann commented 6 years ago

Similar problem here:

=== Reason: bad argument
  in function  list_to_binary/1
     called as list_to_binary([#{},#{}])
  in call from smpp:internal2json/2 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 30)
  in call from maps:'-map/2-lc$^0/1-0-'/2 (maps.erl, line 232)
  in call from maps:'-map/2-lc$^0/1-0-'/2 (maps.erl, line 232)
  in call from maps:map/2 (maps.erl, line 232)
  in call from smpp:decode_bin/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 191)
  in call from smpp_test_utils:encode_decode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/src/smpp_test_utils.erl, line 41)
  in call from compacted_broadcast_sm_resp_SUITE:test_compacted/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/generated/ct/compacted_broadcast_sm_resp_SUITE.erl, line 52)