=== Test case: rest_client_SUITE:message_sending_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.85942.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@c4570d256f6e.2024-02-22_11.16.10/big_tests.tests.rest_client_SUITE.logs/run.2024-02-22_11.34.02/rest_client_suite.message_sending_errors.160899.html"},
{tc_group_properties,[{name,messages},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@c4570d256f6e.2024-02-22_11.16.10/big_tests.tests.rest_client_SUITE.logs/run.2024-02-22_11.34.02/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@c4570d256f6e.2024-02-22_11.16.10"
=== Started at 2024-02-22 11:34:02
*** User 2024-02-22 11:34:02.960 ***🔗
alicE_message_sending_errors_3220@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-22 11:34:02.961 ***🔗
alicE_message_sending_errors_3220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fece4d90c7e184d1' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-22 11:34:02.961 ***🔗
alicE_message_sending_errors_3220@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-22 11:34:02.961 ***🔗
alicE_message_sending_errors_3220@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2Vfc2VuZGluZ19lcnJvcnNfMzIyMABtYXR5Z3J5c2E=</auth>
*** User 2024-02-22 11:34:02.963 ***🔗
alicE_message_sending_errors_3220@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-22 11:34:02.963 ***🔗
alicE_message_sending_errors_3220@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-22 11:34:02.963 ***🔗
alicE_message_sending_errors_3220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ae63c8361649fabc' from='localhost' version='1.0' xml:lang='en' to='alice_message_sending_errors_3220@localhost'>
*** User 2024-02-22 11:34:02.963 ***🔗
alicE_message_sending_errors_3220@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-22 11:34:02.963 ***🔗
alicE_message_sending_errors_3220@localhost/res1 out
<iq type='set' id='071a87070fe0402a52c1ecdccc4ca46a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-22 11:34:02.964 ***🔗
alicE_message_sending_errors_3220@localhost/res1 in
<iq id='071a87070fe0402a52c1ecdccc4ca46a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_message_sending_errors_3220@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-22 11:34:02.964 ***🔗
alice_message_sending_errors_3220@localhost/res1 out
<iq type='set' id='3649aeb36cf023ad25a593cede0f77c0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:02.965 ***🔗
alice_message_sending_errors_3220@localhost/res1 in
<iq from='localhost' to='alice_message_sending_errors_3220@localhost/res1' id='3649aeb36cf023ad25a593cede0f77c0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:02.965 ***🔗
alice_message_sending_errors_3220@localhost/res1 out
<presence/>
*** User 2024-02-22 11:34:02.968 ***🔗
alice_message_sending_errors_3220@localhost/res1 in
<presence from='alice_message_sending_errors_3220@localhost/res1' to='alice_message_sending_errors_3220@localhost/res1'/>
*** User 2024-02-22 11:34:02.968 ***🔗
bOb_message_sending_errors_3220@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-22 11:34:02.969 ***🔗
bOb_message_sending_errors_3220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='919348a145daa67c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-22 11:34:02.969 ***🔗
bOb_message_sending_errors_3220@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-22 11:34:02.969 ***🔗
bOb_message_sending_errors_3220@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlX3NlbmRpbmdfZXJyb3JzXzMyMjAAbWFrcm9saWth</auth>
*** User 2024-02-22 11:34:02.971 ***🔗
bOb_message_sending_errors_3220@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-22 11:34:02.971 ***🔗
bOb_message_sending_errors_3220@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-22 11:34:02.972 ***🔗
bOb_message_sending_errors_3220@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e749ff6e6b1ef198' from='localhost' version='1.0' xml:lang='en' to='bob_message_sending_errors_3220@localhost'>
*** User 2024-02-22 11:34:02.972 ***🔗
bOb_message_sending_errors_3220@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-22 11:34:02.972 ***🔗
bOb_message_sending_errors_3220@localhost/res1 out
<iq type='set' id='f278db4eb2b8ef0ec4f15f77d6c32c30'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-22 11:34:02.972 ***🔗
bOb_message_sending_errors_3220@localhost/res1 in
<iq id='f278db4eb2b8ef0ec4f15f77d6c32c30' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_message_sending_errors_3220@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-22 11:34:02.972 ***🔗
bob_message_sending_errors_3220@localhost/res1 out
<iq type='set' id='cbbddc37bfc095acf1f706028d61f011'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:02.973 ***🔗
bob_message_sending_errors_3220@localhost/res1 in
<iq from='localhost' to='bob_message_sending_errors_3220@localhost/res1' id='cbbddc37bfc095acf1f706028d61f011' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 11:34:02.974 ***🔗
bob_message_sending_errors_3220@localhost/res1 out
<presence/>
*** User 2024-02-22 11:34:02.977 ***🔗
bob_message_sending_errors_3220@localhost/res1 in
<presence from='bob_message_sending_errors_3220@localhost/res1' to='bob_message_sending_errors_3220@localhost/res1'/>
*** User 2024-02-22 11:34:03.038 ***🔗
REST request fails:
Code: 400
Req: {<0.86023.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7947b6eb1d56cdc1">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9zZW5kaW5nX2Vycm9yc18zMjIwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_message_sending_errors_3220@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 11:34:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,155,53097}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"alice_message_sending_errors_3220@localhost">>,
<<"matygrysa">>},
body => <<"{\"to\":\"bob_message_sending_errors_3220@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-02-22 11:34:03.047 ***🔗
REST request fails:
Code: 400
Req: {<0.86043.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"960fb0685e248b6f">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9zZW5kaW5nX2Vycm9yc18zMjIwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_message_sending_errors_3220@localhost it's me\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 11:34:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,156,1403}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"alice_message_sending_errors_3220@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"body\":\"hello, bob_message_sending_errors_3220@localhost it's me\"}">>,
role => client,return_headers => true}
*** User 2024-02-22 11:34:03.056 ***🔗
REST request fails:
Code: 400
Req: {<0.86073.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"79f80d74e43f3e82">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZV9zZW5kaW5nX2Vycm9yc18zMjIwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"@invalid\",\"body\":\"hello, bob_message_sending_errors_3220@localhost it's me\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 11:34:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,156,979}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"alice_message_sending_errors_3220@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"to\":\"@invalid\",\"body\":\"hello, bob_message_sending_errors_3220@localhost it's me\"}">>,
role => client,return_headers => true}
*** User 2024-02-22 11:34:03.056 ***🔗
bob_message_sending_errors_3220@localhost/res1 out
</stream:stream>
*** User 2024-02-22 11:34:03.057 ***🔗
bob_message_sending_errors_3220@localhost/res1 in
</stream:stream>
*** User 2024-02-22 11:34:03.057 ***🔗
alice_message_sending_errors_3220@localhost/res1 out
</stream:stream>
*** User 2024-02-22 11:34:03.057 ***🔗
alice_message_sending_errors_3220@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-22 11:34:03
=== successfully completed test case
=== === Returned value: ok