Azure-Samples / Azure-Samples/openai
[Failed to index data] azd auth token timed out after 10 seconds for /End_to_end_Solutions/AOAISearchDemo/scripts/prepdata.ps1
- Dominant language
- Jupyter Notebook
- Stars
- 1.3k
- Forks
- 455
- Avg merge
- 16h 17m
- Merged PRs (30d)
- 1
Description
> 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
>
azd auth login --tenant-id 'REDACTED' or azd auth login --client-id 'REDACTED' --client-secret 'REDACTED' --tenant-id 'REDACTED'
azd up
The indexing of docs eventually fails because of fetching the token timeout. I have tried both UPN and SPN but none of them worked.
### Any log messages given by the failure
> Indexing sections from 'Surface Deployment Accelerator.pdf' into search index 'gptkbindex'
Indexed 4 sections, 4 succeeded
Processing 'REDACTED\AOAISearchDemo\End_to_end_Solutions\AOAISearchDemo/data/surface_device_documentation/Deploy & manage\Automate deployment\Upgrade Surface devices to Windows 10 with MDT.pdf'
Uploading blob for page 0 -> Upgrade Surface devices to Windows 10 with MDT-0.pdf
Ex
tracting text from 'REDACTED\AOAISearchDemo\End_to_end_Solutions\AOAISearchDemo/data/surface_device_documentation/Deploy & manage\Automate deployment\Upgrade Surface devices to Windows 10 with MDT.pdf' using Azure Form Recognizer
AzureDeveloperCliCredential.get_token failed: Failed to invoke the Azure Developer CLI
Unable to retrieve continuation token: cannot pickle '_io.BufferedReader' object
Traceback (most recent call last):
File "REDACTED\AOAISearchDemo\End_to_end_Solutions\AOAISearchDemo\scripts\.venv\lib\site-packages\azure\identity\_credentials\azd_cli.py", line 153, in _run_command
return subprocess.check_output(args, **kwargs)
File "REDACTED\anaconda3\lib\subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "REDACTED\anaconda3\lib\subprocess.py", line 505, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "REDACTED\anaconda3\lib\subprocess.py", line 1154, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "REDACTED\anaconda3\lib\subprocess.py", line 1530, in _communicate
raise TimeoutExpired(self.args, orig_timeout)
subprocess.TimeoutExpired: Command '['cmd', '/c', 'azd auth token --output json --scope https://cognitiveservices.azure.com/.default --tenant-id REDACTED']' timed out after 10 seconds
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "REDACTED\AOAISearchDemo\End_to_end_Solutions\AOAISearchDemo\scripts\prepdocs.py", line 285, in
page_map = get_document_text(filename)
File "REDACTED\AOAISearchDemo\End_to_end_Solutions\AOAISearchDemo\scripts\prepdocs.py", line 155, in get_document_text
form_recognizer_results = poller.result()
### Expected/desired behavior
> azd up finished successfully
### OS and Version?
> Windows 11
### Versions
>
### Mention any other details that might be useful
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.
Contributor guide
Assessment
This issue has not been assessed yet.