strophe.js with http-bind failed to load resource 404 not found

时光总嘲笑我的痴心妄想 提交于 2019-12-10 20:05:39

问题


I am trying to connect with ejabberd server using strophe.js, but I got the following error:

 POST http://localhost/http-bind/ 404 (Not Found)
Strophe.Bosh._processRequest.sendFunc @ strophe.js:4614
Strophe.Bosh._processRequest @ strophe.js:4626
Strophe.Bosh._throttledRequestHandler @ strophe.js:4778
Strophe.Bosh._connect @ strophe.js:4177Strophe.Connection.connect @ strophe.js:2335
$scope.login @ app.js:162
fn @ VM165:4
Ic.(anonymous function).compile.d.on.f @ angular.js:23411
$get.n.$eval @ angular.js:15916
$get.n.$apply @ angular.js:16016
(anonymous function) @ angular.js:23416
n.event.dispatch @ jquery-2.1.3.min.js:3
n.event.add.r.handle @ jquery-2.1.3.min.js:3
strophe.js:2784 7

回答1:


I have found that Skype some time use port 80, that was assigned to Apache server.This think may prevent the http-binding.After quit Skype, It works fine.



来源:https://stackoverflow.com/questions/32185186/strophe-js-with-http-bind-failed-to-load-resource-404-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!