Skip to content

ValueError: Invalid isoformat string: '2025-02-13T23:04:11.000+0000' #191

Closed
@ovizii

Description

@ovizii

Description of the bug
Trying to download docs from TR and getting this error:

To Reproduce
Steps to reproduce the behavior:

/app/bin/python3 pytr dl_docs /documents

Expected behavior
I expect the process to download all documents.

Error log

10:44:42 Subscribing #25 timeline activity log
10:44:42 Received #25 timeline activity log
10:44:42 Received last relevant timeline activity log
10:44:43 All timeline details requested
10:44:43    1/6092: HEM -- None - 2025-02-14T07:46:12
10:44:44    2/6092: Backhaus Bickert -- None - 2025-02-14T09:24:13
10:44:44    3/6092: OpenAI -- None - 2025-02-12T18:30:13
10:44:44    4/6092: EDEKA -- None - 2025-02-14T09:22:56
10:44:44    5/6092: Steuerkorrektur -- None - 2025-02-13T23:04:11
Traceback (most recent call last):
  File "/app/bin/pytr", line 8, in <module>
    sys.exit(main())
  File "/app/lib/python3.9/site-packages/pytr/main.py", line 267, in main
    asyncio.get_event_loop().run_until_complete(dl.dl_loop())
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/app/lib/python3.9/site-packages/pytr/dl.py", line 81, in dl_loop
    self.tl.process_timelineDetail(response, self)
  File "/app/lib/python3.9/site-packages/pytr/timeline.py", line 168, in process_timelineDetail
    dl.dl_doc(doc, title, doc.get("detail"), subfolder, datetime.fromisoformat(event["timestamp"]))
ValueError: Invalid isoformat string: '2025-02-13T23:04:11.000+0000'

Environment

  • OS: Docker with python:3.9-alpine
  • pytr version: python:3.9-alpine

Additional context
Dockerfile created with:

RUN         python3 -m venv /app &&\
            /app/bin/pip install pytr websockets &&\
            addgroup -g ${GID} -S ${USER} &&\
            adduser -u ${UID} -S ${USER} -G ${USER} &&\
            chown -R ${UID}:${GID} /app

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions