Skip to content

speedscope format contains invalid json #623

Closed

Description

@tmds

Steps to reproduce:

                    using var httpClient = new HttpClient();
                    string response = await httpClient.GetStringAsync("http://redhatloves.net/");

Log with --providers Microsoft-System-Net-Http --format speedscope

The resulting json file is invalid because newlines are not escaped in json strings.

For example:

{ "name": "EventData: parameters=(Method: GET, RequestUri: 'http://redhatloves.net/', Version: 1.1, Content: <null>, Headers:
{
})" }

Activity

  1. tmds commented on Nov 18, 2019

    @tmds
    MemberAuthor
  2. hoyosjs commented on Nov 18, 2019

    @hoyosjs
    Member
  3. added
    bug
    good first issue
    on Nov 18, 2019
  4. added this to the 5.0 milestone on Nov 18, 2019
  5. josalem commented on Nov 18, 2019

    @josalem
    Contributor

    Tracking fix in: microsoft/perfview#1057

  6. added a commit that references this issue on Dec 3, 2019
    a13f79d
  7. adamsitnik commented on Dec 3, 2019

    @adamsitnik
    Member

    I've submitted a fix in #661

  8. ghost locked as resolved and limited conversation to collaborators on Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtracking-external-issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions