Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception Data cannot be displayed #1360

Closed
jianxuanbing opened this issue Jul 6, 2023 · 6 comments
Closed

Exception Data cannot be displayed #1360

jianxuanbing opened this issue Jul 6, 2023 · 6 comments
Assignees
Labels

Comments

@jianxuanbing
Copy link

The Data in the exception cannot be displayed on the UI。

The node data.@error.data cannot be displayed on the UI.

  • TestA : ABC
  • TestA : A

image

image

{
    "id": "64a630aa894ddb000156027c",
    "organization_id": "63be1366fd2683000d4a9c54",
    "project_id": "63be136efd2683000d4a9c55",
    "stack_id": "64a630b2894ddb0001560278",
    "is_first_occurrence": true,
    "created_utc": "2023-07-06T03:10:42.4504723",
    "type": "error",
    "date": "2023-07-06T11:10:34.3883139+08:00",
    "tags": [
        "2dea99757059476581a578f65de0e3b1"
    ],
    "message": "TestWarningWithData",
    "data": {
        "RequestPath": "/api/Test/testWarningWithData",
        "ParentId": "0000000000000000",
        "@error": {
            "message": "TestWarningWithData",
            "type": "Bing.Exceptions.Warning",
            "code": "-2146233088",
            "data": {
                "TestA": "ABC",
                "Test": "A",
                "@target": {
                    "ExceptionType": "Bing.Exceptions.Warning",
                    "Message": "TestWarningWithData",
                    "Method": "Bing.Admin.Apis.TestController.TestWarningWithDataAsync()"
                },
                "@ext": {
                    "HttpStatusCode": 0
                }
            }
        },
        "RequestId": "80000026-0008-ff00-b63f-84710c7967bb",
        "@version": "1.0.0+6a80f7a7745876a9ca191a9dbaa3fdee5cbf6d31",
        "TraceId": "2dea99757059476581a578f65de0e3b1",
        "CorrelationId": "2dea99757059476581a578f65de0e3b1",
        "LogLevel": "Error",
        "SpanId": "349cb363e4886cfb",
        "error": {
            "code": [
                "-2146233088"
            ],
            "type": [
                "Bing.Exceptions.Warning"
            ],
            "message": [
                "TestWarningWithData"
            ]
        }
    }
}
@niemyjski
Copy link
Member

How are you specifying that data? All of our clients place extra exception data in the @ext object.

@jianxuanbing
Copy link
Author

but, my logger is Logging->Excpeionless

throw new Exception("TestWarningWithData") { Data = { { "TestA", "ABC" }, { "Test", "A" } } };

@niemyjski
Copy link
Member

@jianxuanbing what version of the .NET Client are you using? I'll make sure we add this to our test case.

@jianxuanbing
Copy link
Author

  • SDK Version: NET6
  • Exceptionless.Extensions.Hosting: 6.0.2
  • Exceptionless.Extensions.Logging: 6.0.2
  • Exceptionless Server Version: 7.2.1

@niemyjski niemyjski self-assigned this Jul 7, 2023
@niemyjski niemyjski added the bug label Jul 7, 2023
@niemyjski
Copy link
Member

I've confirmed this is a front-end bug. The data items should be copied over and it's only extra defined exception properties that will be moved over to the @ext

@niemyjski
Copy link
Member

Thanks for reporting this, this is fixed in a nightly release build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants