向离线用户键入消息会显示错误 [英] Typing a message to an offline user shows an error

查看:68
本文介绍了向离线用户键入消息会显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我向离线用户写消息时-没有发送它-我收到错误消息

When I write messages to a user who is offline - without sending it - I get an error

由于错误,您的邮件未发送

Your message was not sent because of an error

未找到用户会话-错误代码503

User session not found - error code 503

响应:

/http-bind/
<body xmlns='http://jabber.org/protocol/httpbind'>
  <message xml:lang='en' xmlns='jabber:client'
      to='abogdanov@bingo-dev.ru/181473147433257603378'
      from='jabberadmin@bingo-dev.ru'
      type='error'>
    <paused xmlns='http://jabber.org/protocol/chatstates'/>
    <error code='503' type='cancel'>
      <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
      <text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>
        User session not found
      </text>
    </error>
  </message>
</body>

推荐答案

您的客户端尝试发送键入通知"以指示您正在键入的用户,并且不能很好地处理错误:它不应显示键入通知的错误(还是根本不发送到离线状态?).另外,您可能已禁用服务器上的脱机存储,这就是服务器报告错误的原因.

Your client is trying to send "typing notifications" to indicate user you are typing, and doesn't handle errors well: it should not show errors for typing notifications (or not send it to offline at all?). Also, you may have disabled offline storage at your server and that is why server report errors.

这篇关于向离线用户键入消息会显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆