Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Timeouts #82

Open
2 of 3 tasks
physikerwelt opened this issue Jul 14, 2024 · 0 comments
Open
2 of 3 tasks

Handle Timeouts #82

physikerwelt opened this issue Jul 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@physikerwelt
Copy link
Member

Describe the bug
root@44ebd050cc0c:/python-zbMathRest2Oai# cat err.log
Traceback (most recent call last):
File "/python-zbMathRest2Oai/src/zbmath_rest2oai/run_get_all_de_documents.py", line 3, in
get_all(
File "/python-zbMathRest2Oai/src/zbmath_rest2oai/get_all.py", line 9, in get_all
res = write_oai(api_source=uri_request, prefix=prefix, ingest_format=ingest_format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python-zbMathRest2Oai/src/zbmath_rest2oai/writeOai.py", line 50, in write_oai
records, last_id = asyncio.run(async_write_oai(test_xml, ingest_format))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/python-zbMathRest2Oai/src/zbmath_rest2oai/writeOai.py", line 42, in async_write_oai
await asyncio.gather(*tasks)
File "/python-zbMathRest2Oai/src/zbmath_rest2oai/writeOai.py", line 17, in post_item
async with session.post(URL, data=files, auth=AUTH) as response:
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1197, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 608, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 971, in start
with self._timer:
File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 735, in exit
raise asyncio.TimeoutError from None
TimeoutError
root@44ebd050cc0c:/python-zbMathRest2Oai# cat state.json
{
"software": 0,
"document": 7731222,
"document_perf": {
"records": 4621500,
"time_rest": 62472.722091000214,
"time_oai": 23321.4644440189
}
}root@44ebd050cc0c:/python-zbMathRest2Oai#

Checklist for this issue:
(Some checks for making sure this issue is completely formulated)

  • Assignee has been set for this issue
  • All fields of the issue have been filled
  • the main MaRDI project has been assigned as project
@physikerwelt physikerwelt added the bug Something isn't working label Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants