1

1 問題: Bosh を介して XMPP でリソースをバインドしようとすると、xml が適切に形成されていないというエラーが発生します。

私が試したこと:リソースをバインドするための適切なxmlスタンザ(http://xmpp.org/extensions/xep-0206.html#preconditions-sasl)を探すためにxmpp.orgに行きましたが、似ているようです。

考えられる答え: 認証後にストリームを再開していません。それがこのエラーの原因でしょうか?

2 問題: パケット (http://xmpp.org/extensions/xep-0206.html#preconditions-sasl) を使用してストリームを再起動しようとしましたが、応答コードに 400 が返されましたか? なぜ私がそれを手に入れたのか、誰かが何か知っていますか?

考えられる答え: 初期パケットへの応答で xmpp:restartLogic 属性を取得できませんでしたか? それが 400 エラーが発生する理由でしょうか (Ejabbered サーバーが再起動をサポートしていない可能性があります)?

疑問: Ejabberd で restartlogic を有効にする方法を知っている人はいますか?それともデフォルトで有効になっていますか?

私のログは次のとおりです。

読み取るスタンザは = body xmlns='http://jabber.org/protocol/httpbind' sid='8d96d01bb87f526e78b0f0b620dd1c94edd172ee' wait='30' requests='2' inactivity='30' maxpause='120' polling='2 ' ver='1.8' from='someserver.com' secure='true' authid='2817580747' xmlns:xmpp='urn:xmpp:xbosh' xmlns:stream='http://etherx.jabber.org/streams ' xmpp:version='1.0'
読み取るスタンザは = stream:features xmlns:stream='http://etherx.jabber.org/streams' です。
読み取るスタンザは = メカニズム xmlns='urn:ietf:params:xml:ns:xmpp-sasl' です。
読むスタンザは=メカニズム
読み取るスタンザは = c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver= です。 「U5DC02T7iwEqfov5b3KpIVgA5+I=」/
読み取るスタンザは = register xmlns='http://jabber.org/features/iq-register'/ です。
セッション作成応答が受信されました: body secure=true requests=2 inactivity=30 authid=2817580747 sid=8d96d01bb87f526e78b0f0b620dd1c94edd172ee polling=2 xmlns=http://jabber.org/protocol/httpbind wait=30 xmpp=urn:xmpp:xbosh ver=1.8 version=1.0 from=someserver.com stream=http://etherx.jabber.org/streams maxpause=120 ==
        特徴 stream=http://etherx.jabber.org/streams ==
                メカニズム xmlns=urn:ietf:params:xml:ns:xmpp-sasl ==
                        メカニズム == プレーン
                        仕組み == DIGEST-MD5
                        メカニズム == SCRAM-SHA-1
                c ver=U5DC02T7iwEqfov5b3KpIVgA5+I= node=http://www.process-one.net/en/ejabberd/ hash=sha-1 xmlns=http://jabber.org/protocol/caps ==
                登録 xmlns=http://jabber.org/features/iq-register ==
認証中: body secure=true requests=2 inactivity=30 authid=2817580747 sid=8d96d01bb87f526e78b0f0b620dd1c94edd172ee polling=2 xmlns=http://jabber.org/protocol/httpbind wait=30 xmpp=urn:xmpp:xbosh ver=1.8 version=1.0 from=someserver.com stream=http://etherx.jabber.org/streams maxpause=120 ==
        特徴 stream=http://etherx.jabber.org/streams ==
                メカニズム xmlns=urn:ietf:params:xml:ns:xmpp-sasl ==
                        メカニズム == プレーン
                        仕組み == DIGEST-MD5
                        メカニズム == SCRAM-SHA-1
                c ver=U5DC02T7iwEqfov5b3KpIVgA5+I= node=http://www.process-one.net/en/ejabberd/ hash=sha-1 xmlns=http://jabber.org/protocol/caps ==
                登録 xmlns=http://jabber.org/features/iq-register ==
プレーン認証の使用
writtenToAir [0]: AE1haGlAdGVzdC5yYXBpZHNvZnR0ZWNobm9sb2d5LmNvbQBtYWhp
PLAIN認証の開始
読み取るスタンザは = body xmlns='http://jabber.org/protocol/httpbind' です
読み取るスタンザは = success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/ です
writtenToAir [0]: リソース
バインディング リソース
読み取るスタンザは = body type='terminate' condition='remote-stream-error' xmlns='http://jabber.org/protocol/httpbind' xmlns:stream='http://etherx.jabber.org/ストリーム
読み取るスタンザは = stream:error
読み取るスタンザは = xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/ です
4

0 に答える 0