azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

ERROR: failed running post hooks

Open IhebGhazala opened this issue 2 years ago • 4 comments

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

just running azd up command when it gets to xecuting postprovision hook

Any log messages given by the failure

Running "prepdocs.py" Ensuring search index gptkbindex exists Traceback (most recent call last): File "/workspaces/azure-search-openai-demo/./scripts/prepdocs.py", line 299, in create_search_index() File "/workspaces/azure-search-openai-demo/./scripts/prepdocs.py", line 237, in create_search_index if args.index not in index_client.list_index_names(): File "/workspaces/azure-search-openai-demo/scripts/.venv/lib/python3.9/site-packages/azure/core/paging.py", line 124, in next return next(self._page_iterator) File "/workspaces/azure-search-openai-demo/scripts/.venv/lib/python3.9/site-packages/azure/core/paging.py", line 76, in next self._response = self._get_next(self.continuation_token) File "/workspaces/azure-search-openai-demo/scripts/.venv/lib/python3.9/site-packages/azure/search/documents/indexes/_generated/operations/_indexes_operations.py", line 520, in get_next raise HttpResponseError(response=response, model=error) azure.core.exceptions.HttpResponseError: () Authorization failed. Code: Message: Authorization failed.

ERROR: failed running post hooks: 'postprovision' hook failed with exit code: '1', Path: './scripts/prepdocs.sh'. : exit status 1

Expected/desired behavior

successful deployment

OS and Version?

Windows 11

Versions

22H2

Mention any other details that might be useful

i'm using remote docker


Thanks! We'll be in touch soon.

IhebGhazala avatar May 09 '23 11:05 IhebGhazala

same error with the _indexes_operations.py", line 520. This is on a mac, running azd from scratch. All resources were deployed successfully.

wahalulu avatar May 10 '23 23:05 wahalulu

i tried it and still the same error

IhebGhazala avatar May 16 '23 12:05 IhebGhazala

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.

github-actions[bot] avatar Dec 26 '23 01:12 github-actions[bot]

same error with the _indexes_operations.py", line 520. This is on a mac, running azd from scratch. All resources were deployed successfully.

hi, did you get in solution?

rishabbjain avatar Feb 15 '24 18:02 rishabbjain