Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Unable to retrieve xml content / Invalid naming #62

@egeda9

Description

@egeda9

Describe the bug
The library is only taking into account getting JSON content. Therefore when obtaining XML content an exception is being generated.

To Reproduce
Point to a Logic App whose body content is either input or output in XML format

Expected behavior
Do not raise deserialization exception when XML content is required

Additional context
Exception: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
Call Stack: at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Linq.JToken.ReadFrom(JsonReader reader, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JToken.Parse(String json, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JToken.Parse(String json)
at Invictus.Testing.LogicApps.LogicAppsProvider.d__23.MoveNext() in ...\Repos\testing-framework\src\Invictus.Testing.LogicApps\LogicAppsProvider.cs:line 306
Method: private static async Task GetHttpJsonStringAsync(string uri)
Line: return JToken.Parse(json);

  • Version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions