Skip to content

scripts/prepdocs.ps1 fails #2456

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

Open
asevillano opened this issue Mar 27, 2025 · 2 comments
Open

scripts/prepdocs.ps1 fails #2456

asevillano opened this issue Mar 27, 2025 · 2 comments

Comments

@asevillano
Copy link

Hi,

I've just deployed the accelerator and the execution of scripts\prepdocs.ps1 is failing with this error:

Running "prepdocs.py"
./app/backend/prepdocs.py "C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo/data/" --verbose
[12:18:33] INFO Loading azd env from C:\Angel\AI GBB\Azure load_azd_env.py:28
Samples\azure-search-openai-demo.azure\demo-rag.env, which may override existing
environment variables
INFO Connecting to Azure services using the azd credential for tenant prepdocs.py:321
16b3c013-d300-468d-ac64-7eda0820b6d3
INFO Using local files: C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo/data/
prepdocs.py:104
INFO Checking whether search index gptkbindex exists... searchmanager.py:70
Traceback (most recent call last):
File "C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo\app\backend\prepdocs.py", line 439, in
loop.run_until_complete(main(ingestion_strategy, setup_index=not args.remove and not args.removeall))
File "C:\Python312\Lib\asyncio\base_events.py", line 691, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo\app\backend\prepdocs.py", line 242, in main
await strategy.setup()
File "C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo\app\backend\prepdocslib\filestrategy.py", line 81, in setup
await search_manager.create_index()
File "C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo\app\backend\prepdocslib\searchmanager.py", line 74, in create_index
if self.search_info.index_name not in [name async for name in search_index_client.list_index_names()]:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo.venv\Lib\site-packages\azure\core\async_paging.py", line 142, in anext
return await self.anext()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo.venv\Lib\site-packages\azure\core\async_paging.py", line 145, in anext
self._page = await self._page_iterator.anext()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo.venv\Lib\site-packages\azure\core\async_paging.py", line 94, in anext
self._response = await self._get_next(self.continuation_token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Angel\AI GBB\Azure Samples\azure-search-openai-demo.venv\Lib\site-packages\azure\search\documents\indexes_generated\aio\operations_indexes_operations.py", line 291, in get_next
raise HttpResponseError(response=response, model=error)
azure.core.exceptions.HttpResponseError: () Failed to get Azure RBAC authorization decision. Please wait and retry your request later.
Code:
Message: Failed to get Azure RBAC authorization decision. Please wait and retry your request later.

@pamelafox
Copy link
Collaborator

I haven't seen that error before, I'm hoping it was an intermittent error from the Azure authorization service. Have you tried re-running that script since then?

@asevillano
Copy link
Author

asevillano commented May 6, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants