[ejabberd] mod_mix => No module is handling this query

Robert Latko robert at lmi-global.com
Wed Jun 12 03:35:56 MSK 2019


https://docs.ejabberd.im/tutorials/mix-010/

chats

<publish node='urn:xmpp:mix:nodes:messages'>

presence

<publish node='urn:xmpp:mix:nodes:presence'>

giving the "No module is handling this query"

can someone send me some sample stanzas for sending messages to MIX and 
also presence?

Thanks!

Robert



On 6/11/19 4:51 PM, Robert Latko wrote:
>
> Hi all,
>
> Did DISCO on the MIX
>
>   * http://jabber.org/protocol/disco#info
>   * http://jabber.org/protocol/disco#items
>   * urn:xmpp:mix:core:0
>   * urn:xmpp:mix:core:0#searchable
>   * urn:xmpp:mix:core:0#create-channel
>
> so changed stanza to reflect the "urn:xmpp:mix:core:0#create-channel"
>
> rather than what was provided as an example in 
> https://xmpp.org/extensions/xep-0369.html#usecase-admin-create
>
> which has "urn:xmpp:mix:core:1#create-channel"   <= notice the "1" 
> versus the "0" in the above.
>
> The below stanza works to create channel.
>
> <iq
>     id='lx09df27'
>     to='mix.localhost'
>     type='set'>
>   <create channel='hellomix' xmlns='urn:xmpp:mix:core:0'/>
> </iq>
>
> Knew I'd figure this out seconds after I posted to the list.
>
> Thank you,
>
> Robert
>
>
>
> On 6/11/19 4:43 PM, Robert Latko wrote:
>> Hi all,
>>
>> Trying to use MIX on 19.02 but was getting "No module is handling 
>> this query" so just loaded 19.05; getting the same.
>>
>> Please let me know solutions/resolutions/ideas  as I would like to 
>> start working with MIX.
>>
>> Thanks in advance,
>>
>> Robert
>>
>>
>> //* my ejabberd.yml
>>
>> modules:
>>   mod_mix:
>>     db_type: sql
>>
>>   mod_pubsub:
>>     access_createnode: pubsub_createnode
>>     ignore_pep_from_offline: true
>>     last_item_cache: false
>>     plugins:
>>       - "flat"
>>       - "hometree"
>>       - "pep"
>>
>> //* Channel creation stanza
>>
>> <iq
>>     id='lx09df27'
>>     to='mix.localhost'
>>     type='set'>
>>   <create channel='hellomix' xmlns='urn:xmpp:mix:core:1'/>
>> </iq>
>>
>> //* Result stanza
>>
>> <iq xmlns='jabber:client'
>>     xml:lang='en'
>>     to='test at localhost/165643823900812286421058'
>>     from='mix.localhost'
>>     type='error'
>>     id='lx09df27'>
>> <create xmlns='urn:xmpp:mix:core:1'
>>         channel='hellomix'/>
>> <error code='503'
>>        type='cancel'>
>> <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
>> <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'
>>       xml:lang='en'>
>> No module is handling this query
>> </text>
>> </error>
>> </iq>
>>
>>
>> //* DEBUG / LOG
>>
>>
>> 16:36:00.376 [debug] route:
>> #iq{id = <<"lx09df27">>,type = set,lang = <<"en">>,
>>     from = #jid{user = <<"test">>,server = <<"localhost">>,
>>                 resource = <<"165643823900812286421058">>,luser = 
>> <<"test">>,
>>                 lserver = <<"localhost">>,
>>                 lresource = <<"165643823900812286421058">>},
>>     to = #jid{user = <<>>,server = <<"mix.localhost">>,resource = <<>>,
>>               luser = <<>>,lserver = <<"mix.localhost">>,lresource = 
>> <<>>},
>>     sub_els = [#xmlel{name = <<"create">>,
>>                       attrs = [{<<"xmlns">>,<<"urn:xmpp:mix:core:1">>},
>> {<<"channel">>,<<"hellomix">>}],
>>                       children = []}],
>>     meta = #{ip => {108,64,212,40}}}
>> 16:36:00.388 [debug] route:
>> #iq{id = <<"lx09df27">>,type = error,lang = <<"en">>,
>>     from =
>>         #jid{
>>             user = <<>>,server = <<"mix.localhost">>,resource = <<>>,
>>             luser = <<>>,lserver = <<"mix.localhost">>,lresource = 
>> <<>>},
>>     to =
>>         #jid{
>>             user = <<"test">>,server = <<"localhost">>,
>>             resource = <<"165643823900812286421058">>,luser = 
>> <<"test">>,
>>             lserver = <<"localhost">>,
>>             lresource = <<"165643823900812286421058">>},
>>     sub_els =
>>         [#xmlel{
>>              name = <<"create">>,
>>              attrs =
>> [{<<"xmlns">>,<<"urn:xmpp:mix:core:1">>},
>> {<<"channel">>,<<"hellomix">>}],
>>              children = []},
>>          #stanza_error{
>>              type = cancel,code = 503,by = undefined,
>>              reason = 'service-unavailable',
>>              text =
>>                  [#text{
>>                       lang = <<"en">>,
>>                       data = <<"No module is handling this query">>}],
>>              sub_els = []}],
>>     meta = #{ip => {108,64,212,40}}}
>>
>>
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20190611/f39d82c9/attachment.html>


More information about the ejabberd mailing list