Server running and target connects, but doesn't show in client UI

82 views
Skip to first unread message

Scott Rankin

unread,
Mar 25, 2013, 3:24:51 PM3/25/13
to wei...@googlegroups.com
Hi All,

I've just installed weinre on my Mac OS 10.8 system using npm (I have version 2.0.0-pre-HA5N9T49).  Everything fires up OK, and it appears that the debug target connects fine, but no targets ever show up in the client UI.  If I turn on debug, I get output that makes me think that the issue isn't the target:

2013-03-25T19:10:04.564Z weinre: POST /t-1 [request]
2013-03-25T19:10:04.564Z weinre:    NetworkNotify.didReceiveResponse([6,1364238604.562,"XHR",{"mimeType":"application/j...)
2013-03-25T19:10:05.004Z weinre: --------------------------------------------------
2013-03-25T19:10:05.004Z weinre: POST /t-1 [request]
2013-03-25T19:10:05.004Z weinre:    NetworkNotify.setInitialContent([6,"[{\"id\":1000,\"commuteDistance\":0.0,\"unit\"...)
2013-03-25T19:10:05.004Z weinre:    NetworkNotify.didFinishLoading([6,1364238604.563,null])
2013-03-25T19:10:21.317Z weinre: --------------------------------------------------
2013-03-25T19:10:21.317Z weinre: POST / [request]
2013-03-25T19:10:21.317Z weinre:    {"id":"anonymous"}
2013-03-25T19:10:21.318Z weinre: --------------------------------------------------
2013-03-25T19:10:21.318Z weinre: POST / 200 [response]
2013-03-25T19:10:21.318Z weinre:    {"channel":"c-2","id":"anonymous"}
2013-03-25T19:10:21.359Z weinre: --------------------------------------------------
2013-03-25T19:10:21.359Z weinre: POST /c-2 [request]
2013-03-25T19:10:21.359Z weinre:    Network.cachedResources(["c-2::1"])
2013-03-25T19:10:21.370Z weinre: --------------------------------------------------
2013-03-25T19:10:21.370Z weinre: POST /c-2 [request]
2013-03-25T19:10:21.370Z weinre:    Inspector.hideDOMNodeHighlight([null])
2013-03-25T19:10:21.371Z weinre:    Runtime.releaseWrapperObjectGroup([0,"watch-group",null])
2013-03-25T19:10:21.371Z weinre:    Runtime.releaseWrapperObjectGroup([0,"watch-group",null])
2013-03-25T19:10:21.371Z weinre:    Inspector.removeAllScriptsToEvaluateOnLoad([null])
2013-03-25T19:10:21.371Z weinre:    WeinreClientCommands.getExtensions(["c-2::2"])
2013-03-25T19:10:21.371Z weinre:    Inspector.populateScriptObjects(["c-2::3"])
2013-03-25T19:10:21.371Z weinre:    Console.setConsoleMessagesEnabled([true,null])
2013-03-25T19:10:21.371Z weinre:    CSS.getSupportedCSSProperties(["c-2::4"])
2013-03-25T19:10:21.371Z weinre:    WeinreClientCommands.registerClient(["c-2::5"])

but the targets section stubbornly remains empty.  Any ideas?

Thanks,
Scott

Patrick Mueller

unread,
Mar 25, 2013, 6:05:48 PM3/25/13
to wei...@googlegroups.com
The client appears to be connecting with the "anonymous" id - the default.  Is the target also connecting with this id, or using the default?  See: http://people.apache.org/~pmuellr/weinre/docs/latest/MultiUser.html
--
Patrick Mueller
http://muellerware.org

Scott Rankin

unread,
Mar 26, 2013, 1:30:58 PM3/26/13
to wei...@googlegroups.com
Hey Patrick,

Forcing both the client and the target to use "anonymous" seemed to do the trick.  Thanks so much for your help!
Reply all
Reply to author
Forward
0 new messages