偶尔,我会收到来自客户服务器的异常邮件,告诉我 SOLR 出了点问题:
Uncaught exception 'Apache_Solr_HttpTransportException' with message ''0' Status: Communication Error' in C:\xxxxxxxxx\php\Apache\Solr\Service.php:338
或
Uncaught exception 'Apache_Solr_HttpTransportException' with message ''404' Status: Not Found' in C:\xxxxxxxxx\php\Apache\Solr\Service.php:338
很遗憾,我们无法访问这台机器。我们得到的只是他们系统触发的那些异常邮件。
不管它是 Windows 服务器这一事实,这些消息的原因可能是什么?我希望 404 暗示存在连接中断,但是 0 呢?
提前致谢!
最佳答案
恕我直言,您得到“0”是因为未建立连接后未执行任何 http 操作。 0 应该是默认值。
关于php - Apache SOLR HttpTransportException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20211479/