Microsoft OCR ne fonctionne pas

Bonjour,
Lors de l’utilisation du worker Microsoft OCR sur l’instance de PictorIA, je reçois ce message d’erreur (processus ms_ocr_805dd0 pictoria-03) :

[agent INFO 2026-03-09 12:11:01] Pulling image registry.gitlab.teklia.com/workers/microsoft-ocr:0.2.0
[agent INFO 2026-03-09 12:11:02] Running as docker container: bb6935c86a698d3af8a78b86acb4724ada6616ec10b3f26fea1aecd093427300
2026-03-09 11:11:04,652 INFO/arkindex_worker: Worker will use /data/current as working directory
2026-03-09 11:11:06,549 INFO/arkindex_worker: Loaded Worker Microsoft OCR @ 0.2.0 (version 1) from API
2026-03-09 11:11:06,648 INFO/arkindex.client: Retrying arkindex.client.ArkindexClient.request in 3.0 seconds as it raised ErrorResponse: .
2026-03-09 11:11:09,675 INFO/arkindex.client: Retrying arkindex.client.ArkindexClient.request in 4.0 seconds as it raised ErrorResponse: .
2026-03-09 11:11:13,744 INFO/arkindex.client: Retrying arkindex.client.ArkindexClient.request in 8.0 seconds as it raised ErrorResponse: .
2026-03-09 11:11:21,811 INFO/arkindex.client: Retrying arkindex.client.ArkindexClient.request in 16.0 seconds as it raised ErrorResponse: .
2026-03-09 11:11:37,882 WARNING/arkindex_worker: Secret tmocr/api.yaml not available:
<!doctype html>
<html lang="en">
<head>
  <title>Server Error (500)</title>
</head>
<body>
  <h1>Server Error (500)</h1><p></p>
</body>
</html>
Traceback (most recent call last):
  File "/usr/local/bin/worker-microsoft-ocr", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/worker_microsoft_ocr/ocr/worker.py", line 177, in main
    MicrosoftOCR(description="Arkindex worker to use TMOCR transcriptions").run()
  File "/usr/local/lib/python3.11/site-packages/arkindex_worker/worker/__init__.py", line 179, in run
    self.configure()
  File "/usr/local/lib/python3.11/site-packages/worker_microsoft_ocr/ocr/worker.py", line 26, in configure
    super().configure()
  File "/usr/local/lib/python3.11/site-packages/arkindex_worker/worker/__init__.py", line 159, in configure
    super().configure()
  File "/usr/local/lib/python3.11/site-packages/arkindex_worker/worker/base.py", line 272, in configure
    self.secrets = {name: self.load_secret(Path(name)) for name in required_secrets}
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/arkindex_worker/worker/base.py", line 272, in <dictcomp>
    self.secrets = {name: self.load_secret(Path(name)) for name in required_secrets}
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/arkindex_worker/worker/base.py", line 359, in load_secret
    raise Exception(f"Secret {name} is not available on the API nor locally")
Exception: Secret tmocr/api.yaml is not available on the API nor locally

Bonjour,

J’ai mis à jour l’instance Arkindex pictoria et relancé votre processus, les 3 pages ont été traitées correctement.