我尝试使用 strope.js 连接 ejabberd 服务器,但出现以下错误:
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
我发现Skype有时使用端口80,该端口被分配给Apache服务器。这可能会阻止http绑定。退出Skype后,它工作正常。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)