New issue
Advanced search Search tips

Issue 697048 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: ----



Sign in to add a comment

Headless Chrome: Target.GetTargets doesn't exist

Reported by ja...@getadmiral.com, Feb 28 2017

Issue description

Chrome Version       : 58.0.3018.3

What steps will reproduce the problem?
(1) Call Target.GetTargets via /devtools/browser

What is the expected result?
I expect a list of targets.

What happens instead?
{"error":{"code":-32601,"message":"'Target.getTargets' wasn't found"},"id":1}

 
Components: Platform>DevTools
I think that's because the target domain isn't normally available on the browser endpoint (and Target.getTargets is implemented within content layer). Filing into DevTools category.
It's not clear to me from the viewer site https://chromedevtools.github.io/debugger-protocol-viewer/tot/Target/ what calls should be made to what endpoints, so that definitely might be my fault here. I assumed that all Target.* calls should be sent to the browser endpoint. What endpoint should I be using instead of that one?
Owner: pfeldman@chromium.org
Status: Assigned (was: Unconfirmed)
I was starting with it, but I need to talk telemetry into working to land...

https://codereview.chromium.org/2514933003/

a workaround is using Target.GetTargets on the first available target.
Components: Internals>Headless
This also happens with { method: "Target.sendMessageToTarget" } from the /devtools/browser target
Status: Fixed (was: Assigned)

Sign in to add a comment