Skip to content

InvokeVoidAsync shouldn't serialize return value to .NET #16632

@arivoir

Description

@arivoir

A JavaScript error appears in the browser console

blazor.server.js:1 [2019-10-29T12:25:00.705Z] Information: Normalizing '_blazor' to 'https://localhost:44387/_blazor'.
blazor.server.js:1 [2019-10-29T12:25:01.018Z] Information: WebSocket connected to wss://localhost:44387/_blazor?id=FFEeuHNqrQLnX70peuLyLg.
blazor.server.js:8 Uncaught (in promise) TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Window'
--- property 'parent' closes the circle
at JSON.stringify ()
at blazor.server.js:8
(anonymous) @ blazor.server.js:8
Promise.then (async)
beginInvokeJSFromDotNet @ blazor.server.js:8
(anonymous) @ blazor.server.js:1
e.invokeClientMethod @ blazor.server.js:1
e.processIncomingData @ blazor.server.js:1
connection.onreceive @ blazor.server.js:1
i.onmessage @ blazor.server.js:1

when opening a new tab using

JsRuntime.InvokeAsync<bool>("open", video.Link, "_blank");

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedaffected-fewThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-jsinteropThis issue is related to JSInterop in Blazorseverity-minorThis label is used by an internal tool

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions