現在我正在使用Android中的Xmpp文件傳輸。在發送文件時,它會提供503服務不可用錯誤。Android中的Xmpp FileTransnfer提供503服務不可用錯誤
> 07-29 15:33:12.183: D/SMACK(22151): 03:33:12 PM SENT (1095973320):
> <iq id="s9DTB-10" to="[email protected]/Smack"
> from="[email protected]/Smack" type="set"><si
> xmlns="http://jabber.org/protocol/si" id="jsi_6388535575928662640"
> mime-type="image/jpeg"
> profile="http://jabber.org/protocol/si/profile/file-transfer"><file
> xmlns="http://jabber.org/protocol/si/profile/file-transfer"
> name="IMG_20130715_115622_1445552069.jpg" size="2105955"
> ><desc>test_file</desc></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x
> xmlns="jabber:x:data" type="form"><field var="stream-method"
> type="list-single"><option><value>http://jabber.org/protocol/bytestreams</value></option><option><value>http://jabber.org/protocol/ibb</value></option></field></x></feature></si></iq>
之後,它給像使用
> 07-29 15:33:12.708: D/SMACK(22151): 03:33:12 PM RCV (1095973320): <iq
> from='[email protected]/Smack' to='[email protected]/Smack'
> type='error' id='s9DTB-10'><error code='503'
> type='cancel'><service-unavailable
> xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>
上午asmack-Android的6-0.8.1.1.jar庫
請幫我一個迴應,爲什麼這503錯誤發生。
您是否爲支持做過服務發現?它是否支持文件傳輸返回正確的結果?此外,請執行以下操作:http://stackoverflow.com/questions/11712671/smack-no-response-from-server-not-sure-why-am-i-getting-this-error –
無法使用服務的IQ錯誤不是由缺少服務發現信息引起的。 – Flow
@ skyblueandroid007:嗨,你是否解決了這個問題.. 我也有同樣的問題。如果知道解決方案,請讓我知道。 – Raj