Skip to content

Blazor wasm debugging SSL problem #45625

@seriouz

Description

@seriouz

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I am running a Blazor WASM app as hosted app through a WebApi project.
Everything is smooth but the debugging experience of the Blazor app.

When i am running Chrome with chrome --remote-debugging-port=9222 --ignore-certificate-errors --ignore-ssl-errors --enable-logging --disable-extensions --user-data-dir="C:\Users\serio\AppData\Local\Temp\blazor-chrome-debug" https://localhost:7081/

I get this output (the Blazor app runs but no debugging / breakpoint will be hit):

DevTools listening on ws://127.0.0.1:9222/devtools/browser/8decada6-eb5e-43fe-ac0f-9552a2f614d3
[22776:10556:1216/151153.567:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -101
[22776:10556:1216/151153.573:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -101
[22776:10556:1216/151203.797:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -101
[22776:10556:1216/151214.159:ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -101
[16232:20740:1216/151346.074:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is disabled, ANGLE is

I've added the app.UseWebAssemblyDebugging(); on the WebApi host and added the package Microsoft.AspNetCore.Components.WebAssembly.DevServer in both projects.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

7.0.1

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Componentsfeature-blazor-debuggingThis issue is related to debugging of Blazor WebAssembly appsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    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