Scrapyd 404 错误 运行 curl http://localhost:6800/daemonstatus.json
Scrapyd 404 error to run curl http://localhost:6800/daemonstatus.json
我正在尝试检查服务的负载状态并运行 curl http://localhost:6800/daemonstatus.json 服务器响应了
404(没有此类资源)的状态。请帮忙
我遇到了同样的问题。结果是Scrapyd文档和scrapyd分发不一致。
daemonstatus.json
是在Scrapyd 1.1.0之后加入的。 (https://github.com/scrapy/scrapyd/commit/2fa5513083d0307ac6a0dcb06f5c82669e464175#diff-d122517454dbd6aa38b4726d1ba9e267)
因此,如果您想要守护进程状态 API,您将需要使用 master
分支 https://github.com/scrapy/scrapyd/tree/master。并通过 python setup.py install
安装它。在安装 master
分支之前,记得卸载通过 pip install scrapyd
.
安装的旧版本
我正在尝试检查服务的负载状态并运行 curl http://localhost:6800/daemonstatus.json 服务器响应了 404(没有此类资源)的状态。请帮忙
我遇到了同样的问题。结果是Scrapyd文档和scrapyd分发不一致。
daemonstatus.json
是在Scrapyd 1.1.0之后加入的。 (https://github.com/scrapy/scrapyd/commit/2fa5513083d0307ac6a0dcb06f5c82669e464175#diff-d122517454dbd6aa38b4726d1ba9e267)
因此,如果您想要守护进程状态 API,您将需要使用 master
分支 https://github.com/scrapy/scrapyd/tree/master。并通过 python setup.py install
安装它。在安装 master
分支之前,记得卸载通过 pip install scrapyd
.