Skip to content

AddFile() version 107.1.2-alpha.0.7 not working #1715

@bfcavaco

Description

@bfcavaco

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions