kernel-memory icon indicating copy to clipboard operation
kernel-memory copied to clipboard

[Bug] HttpClient.Timeout with ImportDocumentAsync

Open aitrailblazer opened this issue 1 year ago • 1 comments

Context / Scenario

Importing file with:

using var memoryStream = new MemoryStream(); using Stream fileStream = File.OpenRead(filePath); await fileStream.CopyToAsync(memoryStream); memoryStream.Seek(0, SeekOrigin.Begin);

then: var docId = await memory.ImportDocumentAsync( content: memoryStream, documentId: memoryKey, fileName: fileName, index: indexName, steps: Microsoft.KernelMemory.Constants.PipelineWithSummary, tags: tagsCollection, context: context);

          the file is 200KB

What happened?

Received a timeout

Importance

I cannot use Kernel Memory

Platform, Language, Versions

Azure, Blazor

Relevant log output

Error reading file: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.

aitrailblazer avatar Aug 05 '24 23:08 aitrailblazer