[BUG] Unable to upload a file through UploadFileAsync #43800
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Library name and version
Azure.AI.OpenAI.Assistants 1.0.0-beta.4
Describe the bug
We have a .Net Core API and we have installed Azure.AI.OpenAI.Assistants 1.0.0-beta.4 nuget package.
We are trying to upload a file through .Net Core API using the AssistantsClient.UploadFileAsync it is failing with weird error.
Below is the code we tried with
But,
await _assistantsClient.UploadFileAsync(filePath, OpenAIFilePurpose.Assistants);
fails with below errorBut same code works fine if we try it in windows form application.
Expected behavior
File should get uploaded to Assistant.
Actual behavior
We get this error
Reproduction Steps
In any .Net Core API application try the code mentioned in the description.
Environment
No response
The text was updated successfully, but these errors were encountered: