-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Describe the bug
"StatusCode: InternalServerError, Content-Type: application/json, Content-Length: 16)"
To Reproduce
RestClient client = new(strResource);
RestRequest request = new("", Method.Post);
request.AddParameter("Accept-Encoding", "multipart/form-data", ParameterType.HttpHeader);
request.AddParameter("Authorization", CalibryAuthentication.CalibryToken, ParameterType.HttpHeader);
request.AddFile("file", strFile, "application/pdf");
var restResponse = client.ExecuteAsync(request).Result;
Expected behavior
Should return statusCode == "OK"
Stack trace
There is not stack trace for this issue, only the return status:
InternalServerError, Content-Type: application/json, Content-Length: 16)
Desktop (please complete the following information):
- OS: Windows 10
- .NET version 4.8
- Version: 107.1.2-alpha.0.7
Additional context
The bug does not crash the code, only keeps returning the same error.