Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Method client.GetReadResultAsync is getting cycling

Aperta
#322 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
api, backend

Direzione di ricerca

Inizia con il ciclo do/while segnalato attorno a client.GetReadResultAsync(Guid.Parse(operationId)) e riproduci il comportamento usando la configurazione ASP.NET Core 3.1 indicata. Controlla gli OperationStatusCodes e operationId restituiti in chiamate ripetute; il lavoro è completato quando viene identificato il motivo per cui lo stato rimane Running e il comportamento viene documentato o corretto, poiché non sono indicati né un file di progetto né un test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
            ReadOperationResult results;

            do
            {
                **results = await client.GetReadResultAsync(Guid.Parse(operationId));**
            }
            while ((results.Status == OperationStatusCodes.Running || results.Status == OperationStatusCodes.NotStarted));

            var textUrlFileResults = results.AnalyzeResult.ReadResults;
            foreach (ReadResult page in textUrlFileResults)
            {
                foreach (Line line in page.Lines)
                {
                    stb.AppendLine(line.Text);
                }
            }
Any log messages given by the failure

The code is an ASP.NET Core 3.1API was working fine from a month but since today stop working, I debug the code and saw that the do while is cycling and the results.Status property is always with Running value

Expected/desired behavior
OS and Version?

Windows 7, Windows Server 2012

Versions

asp.net core 3.1

Mention any other details that might be useful

was working fine but just stop working


Thanks! We'll be in touch soon.

Lingua principale
Jupyter Notebook
Stelle
388
Fork
556
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure-Samples/cognitive-services-quickstart-code

Tutte le issue di Azure-Samples/cognitive-services-quickstart-code

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.