[2026-06-05 18:02:13] === TRT3 PDF -> Vector Store uploader ===
[2026-06-05 18:02:13] Assistant: asst_IDRG7AqzwU9Zl8LFbOOCWqtq
[2026-06-05 18:02:13] Vector store: vs_696edcaad35c8191a0ada600624333f6
[2026-06-05 18:02:13] Dir: /home/cibh/crawler.cibh.com.br/transparencia/trt3/
[2026-06-05 18:02:13] Limit per run: 5 | poll=1 | force=0 | attach_assistant=1
[2026-06-05 18:02:13] Env loaded from: /home/cibh/crawler.cibh.com.br/.env
[2026-06-05 18:02:13] State file: /home/cibh/crawler.cibh.com.br/_trt3_pdf_vectorstore_state.json
[2026-06-05 18:02:13] WARN: could not verify/attach assistant: HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:13] WARN: could not list remote vector store files; will rely on local state only. HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:13] Uploading: honorarios-periciais_2017_03.pdf
[2026-06-05 18:02:13] FAIL upload honorarios-periciais_2017_03.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:13] Uploading: honorarios-periciais_2017_05.pdf
[2026-06-05 18:02:13] FAIL upload honorarios-periciais_2017_05.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:13] Uploading: honorarios-periciais_2017_06.pdf
[2026-06-05 18:02:14] FAIL upload honorarios-periciais_2017_06.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:14] Uploading: honorarios-periciais_2017_07.pdf
[2026-06-05 18:02:14] FAIL upload honorarios-periciais_2017_07.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:14] Uploading: honorarios-periciais_2017_08.pdf
[2026-06-05 18:02:14] FAIL upload honorarios-periciais_2017_08.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:14] Uploading: honorarios-periciais_2017_09.pdf
[2026-06-05 18:02:14] FAIL upload honorarios-periciais_2017_09.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:14] Uploading: honorarios-periciais_2017_11.pdf
[2026-06-05 18:02:14] FAIL upload honorarios-periciais_2017_11.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:14] Uploading: honorarios-periciais_2017_12.pdf
[2026-06-05 18:02:14] FAIL upload honorarios-periciais_2017_12.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:14] Uploading: honorarios-periciais_2018_01.pdf
[2026-06-05 18:02:15] FAIL upload honorarios-periciais_2018_01.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:15] Uploading: honorarios-periciais_2018_02.pdf
[2026-06-05 18:02:15] FAIL upload honorarios-periciais_2018_02.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:15] Uploading: honorarios-periciais_2018_04.pdf
[2026-06-05 18:02:15] FAIL upload honorarios-periciais_2018_04.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:15] Uploading: honorarios-periciais_2018_06.pdf
[2026-06-05 18:02:15] FAIL upload honorarios-periciais_2018_06.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:15] Uploading: honorarios-periciais_2018_07.pdf
[2026-06-05 18:02:15] FAIL upload honorarios-periciais_2018_07.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:15] Uploading: honorarios-periciais_2018_08.pdf
[2026-06-05 18:02:16] FAIL upload honorarios-periciais_2018_08.pdf: Upload HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys.
[2026-06-05 18:02:16] Creating vector store file batch with 5 file_id(s)...
Fatal error: Uncaught RuntimeException: HTTP 401: Incorrect API key provided: sk-svcac**********************************************************************************************************************************xtgA. You can find your API key at https://platform.openai.com/account/api-keys. in /home/cibh/crawler.cibh.com.br/trt3_pdf_to_vectorstore.php:202
Stack trace:
#0 /home/cibh/crawler.cibh.com.br/trt3_pdf_to_vectorstore.php(338): curl_json('POST', 'https://api.ope...', 'sk-svcacct-uSx2...', Array, true, 120)
#1 /home/cibh/crawler.cibh.com.br/trt3_pdf_to_vectorstore.php(474): create_vector_store_batch('sk-svcacct-uSx2...', 'vs_696edcaad35c...', Array)
#2 {main}
thrown in /home/cibh/crawler.cibh.com.br/trt3_pdf_to_vectorstore.php on line 202