K2InformaticsGmbH / smpp_parser

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

no bad argument: list_to_binary(...) (2). #59

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([#{addr_npi => 4,addr_ton => 1,
                                 digit_mode_indicator => 1,
                                 number_digits => "my_callback_num"}])
  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_data_sm_SUITE:test_compacted/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/generated/ct/compacted_data_sm_SUITE.erl, line 49)
  in call from test_server:ts_tc/3 (test_server.erl, line 1546)

Example:

 {"data_sm_issue_59",
  "00 00 00 52 00 00 01 03 00 00 00 00 00 00 00 01 47 55 54 53 00 06 01 31 36 "
  "38 2E 30 2E 30 2E 31 00 05 04 31 39 32 2E 31 36 38 2E 31 2E 31 00 00 05 1F "
  "02 0F 00 01 38 03 81 00 12 01 01 04 6D 79 5F 63 61 6C 6C 62 61 63 6B 5F 6E "
  "75 6D 00 06 00 01 06"}