New HTTP Request activity (UiPath.WebAPI.Activities 2.3.0) Argument 'Result': BC30311: Value of type 'HttpResponseSummary' cannot be converted to 'String'. The selected value is incompatible with the property type

When using HTTP Request (NetHttpRequest) from WebAPI 2.3.0, the Response content output cannot be assigned to a String variable. Studio coerces/binds it to HttpResponseSummary, causing compile/runtime errors and preventing us from reading the response body. Downgrading the package to 1.15.0 restores the expected behavior (Response content → String).

Product / Versions

  • Studio: 2025.0.167 STS Enterprise Licencse
  • UiPath.WebAPI.Activities: 2.3.0 (problem)
    (works as expected on 1.15.0)
  • Windows / Target framework: (Windows / Windows-Legacy, .NET 6/4.6.1, etc.)

Steps to Reproduce (minimal)

  1. Create a new process.
  2. Add HTTP Request (WebAPI 2.3.0).
  3. Method: GET, URL: https://httpbin.org/get (or any echo endpoint).
  4. Create variable respBody As String.
  5. In Output → Response content, select respBody.
  6. Add Message Box with respBody.

Actual:

  • Designer shows type mismatch / auto-casts output to a HttpResponseSummary variable, or compilation error similar to:
    Argument 'Response content': Value of type 'HttpResponseSummary' cannot be converted to 'String'.
  • Message Box cannot accept the variable without extra parsing.

Expected:

  • Response content binds to a String variable (the raw body), same as WebAPI 1.15.0 and as documented

Change the Data Type in the UiPath Studio project → Data Manager → Variables of the respBody variable from System.String to UiPath.Web.Activities.Http.Models.HttpResponseSummary

Results for Message Box activity with message respBody.TextContent after applying the above:

2 Likes

Just to complete the answer above:

  • the HTTP Request (legacy) activity returned multiple outputs, the Response content being one of them and of the type String
  • in the new HTTP Request, we opted for a simplified output variable structure, where the single output variable has multiple properties, the .TextContent being one of them:
1 Like

Thanks — I really appreciate your help, but I managed to find the solution myself. I converted the output to a string, and it’s working fine now. Here’s what I did:

  • Used the ‘Assign’ activity
    • saveTo → created a new variable
    • valueToSavevResult.TextContent (where vResult is the output of the HTTP request activity, returned as httpsResponseSummary) :slight_smile: