Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
skhanna #1
Member since Jul 2016 · 73 posts · Location: Indore
Group memberships: Members
Show profile · Link to this post
Subject: Getting error not-acceptable
Hi Alex,

I am getting this error at the time of join room and send message.

  1. Title: OnReceiveXML
  2. Message: <presence to="50ef42f6-aad3-4720-893c-0004dc3eedfe@eworkplace0/b74cdbc8-82fc-4e5e-bd2b-7114939d64ce" from="1db84999-d38e-4a16-978d-02fd4472fe69@conference.eworkplace0/ServerRoomResId" type="error" xmlns="jabber:client">
  3.  <x xmlns="http://jabber.org/protocol/muc">
  4.     <history maxchars="0" />
  5.  </x>
  6.  <error code="404" type="cancel">
  7.     <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  8.  </error>
  9. </presence>
  10.  
  11. Title: OnReceiveXML
  12. Message: <message type="error" to="50ef42f6-aad3-4720-893c-0004dc3eedfe@eworkplace0/b74cdbc8-82fc-4e5e-bd2b-7114939d64ce" messageid="13d377af-e8a4-4f0b-8d98-82c6cad44ef5" messagetype="1" senderid="1249a18c-4378-43d3-a46b-25f2ca1ea347" sendertype="1" sendername="@pulkit1 @agrawal" sendtime="2016-08-30T14:02:30.9731511" threadid="1db84999-d38e-4a16-978d-02fd4472fe69" threadtype="5" sentfrom="server" from="1db84999-d38e-4a16-978d-02fd4472fe69@conference.eworkplace0" xmlns="jabber:client">
  13.  <body>7878</body>
  14.  <error code="406" type="modify">
  15.     <not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  16.  </error>
  17. </message>

Thanks,
Sanjeev Khanna
This post was edited on 2016-08-30, 18:25 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by skhanna:
I am getting this error at the time of join room and send message.

  1. Title: OnReceiveXML
  2. Message: <presence to="50ef42f6-aad3-4720-893c-0004dc3eedfe@eworkplace0/b74cdbc8-82fc-4e5e-bd2b-7114939d64ce" from="1db84999-d38e-4a16-978d-02fd4472fe69@conference.eworkplace0/ServerRoomResId" type="error" xmlns="jabber:client">
  3.  <x xmlns="http://jabber.org/protocol/muc">
  4.     <history maxchars="0" />
  5.  </x>
  6.  <error code="404" type="cancel">
  7.     <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  8.  </error>
  9. </presence>

See in the documentation here:
http://www.xmpp.org/extensions/xep-0045.html#enter-locked

Quote by skhanna:
  1. Title: OnReceiveXML
  2. Message: <message type="error" to="50ef42f6-aad3-4720-893c-0004dc3eedfe@eworkplace0/b74cdbc8-82fc-4e5e-bd2b-7114939d64ce" messageid="13d377af-e8a4-4f0b-8d98-82c6cad44ef5" messagetype="1" senderid="1249a18c-4378-43d3-a46b-25f2ca1ea347" sendertype="1" sendername="@pulkit1 @agrawal" sendtime="2016-08-30T14:02:30.9731511" threadid="1db84999-d38e-4a16-978d-02fd4472fe69" threadtype="5" sentfrom="server" from="1db84999-d38e-4a16-978d-02fd4472fe69@conference.eworkplace0" xmlns="jabber:client">
  3.  <body>7878</body>
  4.  <error code="406" type="modify">
  5.     <not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  6.  </error>
  7. </message>

your outgoing packet will help help here. But I assume you can find the answer here:
http://www.xmpp.org/extensions/xep-0045.html#message

If the sender is not an occupant of the room, the service SHOULD return a <not-acceptable/> error to the sender and SHOULD NOT reflect the message to all occupants; the only exception to this rule is that an implementation MAY allow users with certain privileges (e.g., a room owner, room admin, or service-level admin) to send messages to the room even if those users are not occupants.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS