xml-not-well-formed [$15]
I'm getting this randomly:
Traceback (most recent call last):
File "run.py", line 44, in
I couldn't find what exacly what causes this to happen...
There is a $15 open bounty on this issue. Add to the bounty at Bountysource.
post debug log before this message
DEBUG:yowsup.layers.protocol_iq.layer:ping queue size: 1
DEBUG:yowsup.layers.logger.layer:tx:
DEBUG:yowsup.layers.logger.layer:rx:
DEBUG:yowsup.layers.protocol_iq.layer:ping queue size: 1
DEBUG:yowsup.layers.logger.layer:tx:
DEBUG:yowsup.layers.logger.layer:rx:
DEBUG:yowsup.layers.logger.layer:rx:
stream:error
I have the same problem regardless of last transferred data being tx or rx. Even though sometimes after one rx from WA server, it sends me
<stream:error>
<xml-not-well-formed>
</xml-not-well-formed>
</stream:error>
and sometimes after tx e.g. to broadcast some messages it sends this again. Any solution? Have anyone seen any problem like me? Is it possible that asyncore sometimes does not send packets correctly and make them untidy?!
Same Here
Me too!
me too.
On Fri, Jul 3, 2015 at 7:16 PM, Martín Miranda [email protected] wrote:
Me too!
— Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/856#issuecomment-118366604.
I have the same problem happens after a few hours of being connected
I found this: #904
Before:
@ProtocolEntityCallback("receipt")
def onReceipt(self, entity):
ack = OutgoingAckProtocolEntity(entity.getId(), "receipt", 'delivery', entity.getFrom())
self.toLower(ack)
After:
@ProtocolEntityCallback("receipt")
def onReceipt(self, entity):
ack = OutgoingAckProtocolEntity(entity.getId(), "receipt", entity.getType(), entity.getFrom())
self.toLower(ack)
Its run since 2 days ago .. :)
Even with this settings i have had the problem.
On Tue, Jul 7, 2015 at 6:35 PM, Martín Miranda [email protected] wrote:
I found this: #904 https://github.com/tgalal/yowsup/issues/904
Before:
@ProtocolEntityCallback("receipt")def onReceipt(self, entity): ack = OutgoingAckProtocolEntity(entity.getId(), "receipt", 'delivery', entity.getFrom()) self.toLower(ack)
After:
@ProtocolEntityCallback("receipt")def onReceipt(self, entity): ack = OutgoingAckProtocolEntity(entity.getId(), "receipt", entity.getType(), entity.getFrom()) self.toLower(ack)
Its run since 2 days ago .. :)
— Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/856#issuecomment-119212877.
I have the same configuration and after a few hours does the same
Hey guys, nobody has found anything?
Unhandled exception in thread started by <bound method YowStack.loop of <yowsup.stacks.yowstack.YowStack object at 0x1105572d0>> Traceback (most recent call last):
......
" File "/Users/robertourita/.virtualenvs/whatsapp/lib/python2.7/site-packages/yowsup/layers/auth/layer_authentication.py", line 79, in handleStreamError raise AuthError("Unhandled stream:error node:\n%s" % node) yowsup.layers.auth.autherror.AuthError: Unhandled stream:error node: stream:error < xml-not-well-formed ></ xml-not-well-formed ></ stream:error >"
same here... any news about this one? is it dangerous?
I´m having the same Problem:
Auth Error, reason Unhandled stream:error node:
stream:error
allready had the @ProtocolEntityCallback("receipt") as written by debianitram
after watching the log I think this happens when a whatsapp sends receipts twice.
in my log I have:
2016-03-02 19:05:45 INFO fenster Sending Message Das Küchenfenster ist seit 34 Minuten auf. to XXXXXXXXXXXX 2016-03-02 19:05:45 INFO whatsapp Received ACK: ID 1456941945-1093 Class message 2016-03-02 19:05:46 INFO whatsapp Received Receipt: ID 1456941945-1093 2016-03-02 19:05:46 INFO whatsapp Sending ACK
about five minutes later:
`2016-03-02 19:10:41 INFO whatsapp Received Receipt: ID 1456941945-1093
2016-03-02 19:10:41 INFO whatsapp Sending ACK`
another five minutes later:
2016-03-02 19:14:27 INFO whatsapp Auth Error, reason Unhandled stream:error node: stream:error
/stream:error
so as it seams the receipt with ID 1456941945-1093 is send twice and with the 2nd ACK the "xml not well formed error" happens.
How I can further investigate and check what is send with the ACK?
Try to add the timestamp of the message you received to the receipt.
thanks for your help, I´m sending receipt like this:
@ProtocolEntityCallback("receipt")
def onReceipt(self, entity):
logger.info("Received Receipt: ID {}".format(entity._id))
logger.info("Sending ACK")
ack = OutgoingAckProtocolEntity(entity.getId(), "receipt", entity.getType(), entity.getFrom())
self.toLower(entity.ack())
where do I have to add the timestamp?
See my master where acks and receipts are updated.
hello jlguardi, tried your master today but still get:
<stream:error>
<xml-not-well-formed>
</xml-not-well-formed>
</stream:error>
today after about 4 hours (no incoming or outgoing message in this period)