=== Test case: commands_backend_SUITE:post_wrong_arg_type/1 (click for source code) === Config value: [{watchdog,<0.1696.2>}, {tc_logfile,"/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-03-18_09.02.28/lib.mongooseim.logs/run.2022-03-18_09.02.28/commands_backend_suite.post_wrong_arg_type.html"}, {tc_group_properties,[{name,post_advanced_backend},sequence]}, {tc_group_path,[]}, {data_dir,"/home/circleci/project/_build/test/lib/mongooseim/test/commands_backend_SUITE_data/"}, {priv_dir,"/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-03-18_09.02.28/lib.mongooseim.logs/run.2022-03-18_09.02.28/log_private/"}] === Current directory is "/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-03-18_09.02.28" === Started at 2022-03-18 09:03:11
*** User 2022-03-18 09:03:11.322 *** <<"/api/weather">>, "POST", [{arg1,10},{arg2,<<"weird binary">>}]
*** System report during commands_backend_SUITE:post_wrong_arg_type/1 in post_advanced_backend 2022-03-18 09:03:12.314 *** =ERROR REPORT==== 18-Mar-2022::09:03:12.313981 === class: error reason: badarg stacktrace: [{erlang,binary_to_integer,[<<"weird binary">>],[]}, {mongoose_api_common,convert_arg,2, [{file, "/home/circleci/project/src/mongoose_api_common.erl"}, {line,250}]}, {mongoose_api_common,'-check_and_extract_args/3-lc$^2/1-2-', 1, [{file, "/home/circleci/project/src/mongoose_api_common.erl"}, {line,208}]}, {mongoose_api_common,'-check_and_extract_args/3-lc$^2/1-2-', 1, [{file, "/home/circleci/project/src/mongoose_api_common.erl"}, {line,208}]}, {mongoose_api_common,check_and_extract_args,3, [{file, "/home/circleci/project/src/mongoose_api_common.erl"}, {line,208}]}, {mongoose_api_common,handle_request,5, [{file, "/home/circleci/project/src/mongoose_api_common.erl"}, {line,138}]}, {cowboy_rest,call,3, [{file, "/home/circleci/project/_build/default/lib/cowboy/src/cowboy_rest.erl"}, {line,1583}]}, {cowboy_rest,process_content_type,3, [{file, "/home/circleci/project/_build/default/lib/cowboy/src/cowboy_rest.erl"}, {line,1096}]}, {cowboy_rest,upgrade,4, [{file, "/home/circleci/project/_build/default/lib/cowboy/src/cowboy_rest.erl"}, {line,284}]}, {cowboy_stream_h,execute,3, [{file, "/home/circleci/project/_build/default/lib/cowboy/src/cowboy_stream_h.erl"}, {line,306}]}, {cowboy_stream_h,request_process,3, [{file, "/home/circleci/project/_build/default/lib/cowboy/src/cowboy_stream_h.erl"}, {line,295}]}, {proc_lib,init_p_do_apply,3, [{file,"proc_lib.erl"},{line,226}]}] what: check_and_extract_args_failed
*** System report during commands_backend_SUITE:post_wrong_arg_type/1 in post_advanced_backend 2022-03-18 09:03:12.314 *** =ERROR REPORT==== 18-Mar-2022::09:03:12.314347 === error_type: bad_request reason: badarg req: #{bindings => #{},body_length => 33,cert => undefined, charset => undefined,has_body => true, headers => #{<<"accept">> => <<"application/json">>, <<"content-length">> => <<"33">>, <<"content-type">> => <<"application/json">>, <<"host">> => <<"localhost:5288">>}, host => <<"localhost">>,host_info => undefined, media_type => {<<"application">>,<<"json">>,[]}, method => <<"POST">>,path => <<"/api/weather">>, path_info => undefined, peer => {{127,0,0,1},46337}, pid => <0.1952.2>,port => 5288,qs => <<>>, ref => 'ejabberd_cowboy_127.0.0.1_5288', resp_headers => #{<<"content-type">> => [<<"application">>,<<"/">>,<<"json">>,<<>>]}, scheme => <<"http">>, sock => {{127,0,0,1},5288}, streamid => 1,version => 'HTTP/1.1'} what: rest_common_error
=== Ended at 2022-03-18 09:03:12 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result