Skip to content

VS2022 debuger crashes when reading HTTP Response Object response.Content.ReadAsStringAsync(); #57949

@nssidhu

Description

@nssidhu

I am using VS2022 preview 3.1 with Blazor WebAssembly Hosted Project.

I have code where the Debugger crashes and have to start over Debugging again.

in my client side(WebAssembly Project) i have the following code inside trycatch whcih runs into error.
jsonString = await response.Content.ReadAsStringAsync();
The control does not execute the catch block, it simply crashes.

Here is the response from API call from the Newtwork tab of browser.

{"currentLocation":{"CurrentLocationCountry":{"COUNTRYID_PK":"5be0b267-9df7-ea11-af8c-000d3a606520","CountryCode2":"US","CountryCode3":"USA","Country_Name":"United States","UNCode":"840","TelephoneCode":"1","IDD":"011","CurrencyName":"US Dollar r (Same day)","CurrencyCode":"USS"},"CurrentLocationState":{"StateID_PK":"e85a659b-e0f3-461c-8336-17398b8e6084","CountryID_FK":"5be0b267-9df7-ea11-af8c-000d3a606520","State_Name":"Illinois","State_Code":"IL","State_Capital":null},"CurrentLocationCity":{"CityID_PK":"41badc02-45fb-ea11-af8c-000d3a606520","StateID_FK":"e85a659b-e0f3-461c-8336-17398b8e6084","City_Name":"Chicago","City_Code":null},"CurrentLocationZipCode":null,"LastRefreshedAt":"0001-01-01T00:00:00"},"locationGuid":""}

Link to Screen Recording(gif)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions