allenai / allenai/figura11y

grobid connection error

未关闭
#2 12 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
14
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

great work, thank you for sharing.

I think the grobid is running :
![image](https://github.com/allenai/figura11y/assets/103381497/0b7c7f5c-5304-45c3-b3de-ec5f1c12d55d)

but the

api-1 | **File "/api/app/api/document.py"**, line 41, in get_figures
api-1 | ` paragraphs, metadata = PDF2TextService().parse_paragraphs(pdf_path)`
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | `File "/api/app/services/pdf2text.py", line 105, in parse_paragraphs`
api-1 | response = requests.post(url, files=files)

File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 519, in send
api-1 | raise ConnectionError(e, request=request)
api-1 | requests.exceptions.### **`ConnectionError: HTTPConnectionPool(host='grobid', port=8070):`**

More

Max retries exceeded with url: /api/processFulltextDocument (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -2] Name or service not known'))
api-1 | 192.168.65.1 - - [08/Jun/2024:14:24:59 +0000] "POST /backendapi/document/getfigures HTTP/1.0" 500 190 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
proxy-1 | {"time": "2024-06-08T14:27:12+00:00","request_method": "GET","request_uri": "http://localhost/_next/webpack-hmr","status": 101,"request_length": 813,"body_bytes_sent": 6535,"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","ip": "192.168.65.1","realip": "192.168.65.1","referer": "","host": "localhost","scheme": "http","forwarded-for": ""}
proxy-1 | {"time": "2024-06-08T14:29:12+00:00","request_method": "GET","request_uri": "http://localhost/_next/webpack-hmr","status": 101,"request_length": 813,"body_bytes_sent": 166,"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","ip": "192.168.65.1","realip": "192.168.65.1","referer": "","host": "localhost","scheme": "http","forwarded-for": ""}

any suggestions on this?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。