The main problem is, that the error message looks very much like a good message. That's a Jabber "feature". A good message looks like:
<message from="JID" to="JID">If that produces an error, then comes back:
<body>...Started</body>
</message>
<message from="JID">to="JID"type="error">...which looks very much like the original message, if you do not check for the type="error" bit and just forward the body to the twitter API.
<body>...Started</body>
<error code="500" type="wait">
<internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</message>
Fixed.
TwiX has now been updated to version 0.4.8. Get it here.
_happy_looping()
Keine Kommentare:
Kommentar veröffentlichen
Hinweis: Nur ein Mitglied dieses Blogs kann Kommentare posten.