Weinre: target not connected

2447 views
Skip to first unread message

Andy Newby

unread,
Sep 6, 2013, 10:54:07 AM9/6/13
to wei...@googlegroups.com
Hi,

I'm really struggling to get weinre to work locally (even the phonegap server doesn't seem to wanna work for me either)

I'm running it via command line on my PC (win7), using:

C:\Users\Andy>weinre --boundHost 192.168.1.74 --httpPort 8081 --verbose true
2013-09-06T14:49:11.168Z weinre: pid:                 4724
2013-09-06T14:49:11.177Z weinre: version:             2.0.0-pre-HA5N9T49
2013-09-06T14:49:11.177Z weinre: node versions:
2013-09-06T14:49:11.179Z weinre:    http_parser: 1.0
2013-09-06T14:49:11.180Z weinre:    node       : 0.10.17
2013-09-06T14:49:11.182Z weinre:    v8         : 3.14.5.9
2013-09-06T14:49:11.182Z weinre:    ares       : 1.9.0-DEV
2013-09-06T14:49:11.183Z weinre:    uv         : 0.10.14
2013-09-06T14:49:11.184Z weinre:    zlib       : 1.2.3
2013-09-06T14:49:11.184Z weinre:    modules    : 11
2013-09-06T14:49:11.185Z weinre:    openssl    : 1.0.1e
2013-09-06T14:49:11.186Z weinre: options:
2013-09-06T14:49:11.186Z weinre:    httpPort:     8081
2013-09-06T14:49:11.187Z weinre:    boundHost:    192.168.1.74
2013-09-06T14:49:11.188Z weinre:    verbose:      true
2013-09-06T14:49:11.189Z weinre:    debug:        false
2013-09-06T14:49:11.189Z weinre:    readTimeout:  5
2013-09-06T14:49:11.190Z weinre:    deathTimeout: 15
2013-09-06T14:49:11.259Z weinre: starting server at http://192.168.1.74:8081

Then adding this into my test.html script:

<script src="http://192.168.1.74:8081/target/target-script-min.js#anonymous"></script>

Finally, I load the page and see a load of output in Firebug (see attached image). However, as soon as I go to the address in Chrome:

http://192.168.1.74:8081/client/#anonymous

...it ALWAYS (not worked once) says:

weinre: target not connected

I've tried disabling firewalls and all sorts.. but still not luck. Any ideas? I'm really at my wits end with this whole app building lark. The HTML5 app works fine on Android, but not iOS ... so trying to debug it using weinre... but having almost as much fun getting this to work, as fixing the bug :/

TIA

Andy
weinre.png

Andy Newby

unread,
Sep 6, 2013, 10:57:27 AM9/6/13
to wei...@googlegroups.com
Also, why would I get this error all the time on Weinre:

TypeError: window.localStorage.setItem is not a function

window.localStorage.setItem("session_id",  current_user_vals.session_id);

Seems to just be related to localStorage... which is a bit of a bugger - as I use that all over the app (to store settings, session id, etc etc)....

Patrick Mueller

unread,
Sep 7, 2013, 3:44:07 AM9/7/13
to wei...@googlegroups.com
Before going any further - if you want to debug on iOS, you should use their flavor of remote debugging, which is better than what weinre can provide.




--
--
From the weinre Google Group -- http://groups.google.com/group/weinre
 
---
You received this message because you are subscribed to the Google Groups "weinre" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Patrick Mueller
http://muellerware.org

Patrick Mueller

unread,
Sep 7, 2013, 3:46:22 AM9/7/13
to wei...@googlegroups.com
The only case where that should happen is if the browser/browser view you're using doesn't support localStorage.

Does this happen for every platform (iOS, desktop FF, etc), or just some of them?


--
--
From the weinre Google Group -- http://groups.google.com/group/weinre
 
---
You received this message because you are subscribed to the Google Groups "weinre" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Andy Newby

unread,
Sep 7, 2013, 3:55:08 AM9/7/13
to wei...@googlegroups.com
Hi,

Yup, it happens in Firefox (latest). It works fine as soon as I remove the Weinre JS call (ie its not calling weinre). I've been using it for ages, but as soon as I start with weinre it breaks :/

Cheers

Andy



You received this message because you are subscribed to a topic in the Google Groups "weinre" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weinre/izTrQ3qy1do/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weinre+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Andy Newby

unread,
Sep 7, 2013, 3:56:17 AM9/7/13
to wei...@googlegroups.com
Thanks for the reply. Unfortunately I'm only on a Win7 PC, so can't do that.  Typical Apple just trying to make you have to buy all their expensive stuff just to be able to debug an app :(


You received this message because you are subscribed to a topic in the Google Groups "weinre" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weinre/izTrQ3qy1do/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weinre+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Patrick Mueller

unread,
Sep 7, 2013, 1:01:46 PM9/7/13
to wei...@googlegroups.com
What happens in a WebKit-based browser, like Chrome?

Andy Newby

unread,
Sep 7, 2013, 1:02:18 PM9/7/13
to wei...@googlegroups.com
Same thing I'm afraid 
Andy Newby
an...@ultranerds.co.uk

Patrick Mueller

unread,
Sep 7, 2013, 4:33:17 PM9/7/13
to wei...@googlegroups.com
Can you get the sample/demo shipped with weinre to work?


Andy Newby
an...@ultranerds.co.uk

--
--
From the weinre Google Group -- http://groups.google.com/group/weinre
 
---
You received this message because you are subscribed to the Google Groups "weinre" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Andy Newby

unread,
Sep 9, 2013, 2:57:08 AM9/9/13
to wei...@googlegroups.com
Hi,

I'm not sure where the demo is? I just installed it via "NODE" in command line

TIA

Andy


You received this message because you are subscribed to a topic in the Google Groups "weinre" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weinre/izTrQ3qy1do/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weinre+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Patrick Mueller

unread,
Sep 9, 2013, 5:48:33 AM9/9/13
to wei...@googlegroups.com
The main weinre page, at the URL displayed in the console when weinre is started, has the URLs to the demo page, listed under the section "Target Demos".  You should see links to the demo displayed as:

* the non-minified demo
* the minified demo
* the non-minified strict demo

Try running one or more of these to see if they work.

Andy Newby

unread,
Sep 9, 2013, 6:49:19 AM9/9/13
to wei...@googlegroups.com
Hi,

Thanks for the reply. Unfortunately it doesn't work there either (see attached). The annoying thing, is that I did have it working at one point (not sure if it was on this PC though, it may have been my old one).

I can see in Firebug the calls being made to weinre, but the admin panel just doesn't wanna show me anything for some reason :/ I've also tried running the cmd prompt as "Administrator" in case it was a permissions issue, but that seems to have the same issue

TIA!

Andy


example.png

Patrick Mueller

unread,
Sep 10, 2013, 8:31:51 AM9/10/13
to wei...@googlegroups.com, andy....@gmail.com
Try using the --debug flag and post back if anything interesting appears in the console.

Patrick Mueller

unread,
Sep 10, 2013, 8:36:55 AM9/10/13
to wei...@googlegroups.com, andy....@gmail.com
Sorry, try using the --debug flag and then running a target, try connecting with a client, etc.  You may see some errors printed.

Andy Newby

unread,
Sep 10, 2013, 8:47:21 AM9/10/13
to wei...@googlegroups.com, andy....@gmail.com


C:\Users\Andy>weinre --boundHost -all- --httpPort 8081 --debug
2013-09-10T12:38:42.042Z weinre: pid:                 1392
2013-09-10T12:38:42.050Z weinre: version:             2.0.0-pre-HA5N9T49
2013-09-10T12:38:42.051Z weinre: node versions:
2013-09-10T12:38:42.052Z weinre:    http_parser: 1.0
2013-09-10T12:38:42.052Z weinre:    node       : 0.10.17
2013-09-10T12:38:42.052Z weinre:    v8         : 3.14.5.9
2013-09-10T12:38:42.052Z weinre:    ares       : 1.9.0-DEV
2013-09-10T12:38:42.053Z weinre:    uv         : 0.10.14
2013-09-10T12:38:42.053Z weinre:    zlib       : 1.2.3
2013-09-10T12:38:42.054Z weinre:    modules    : 11
2013-09-10T12:38:42.055Z weinre:    openssl    : 1.0.1e
2013-09-10T12:38:42.055Z weinre: options:
2013-09-10T12:38:42.062Z weinre:    httpPort:     8081
2013-09-10T12:38:42.063Z weinre:    boundHost:    -all-
2013-09-10T12:38:42.065Z weinre:    verbose:      true
2013-09-10T12:38:42.066Z weinre:    debug:        true
2013-09-10T12:38:42.067Z weinre:    readTimeout:  5
2013-09-10T12:38:42.068Z weinre:    deathTimeout: 15
2013-09-10T12:38:42.136Z weinre: starting server at http://localhost:8081
2013-09-10T12:38:49.096Z weinre: ------------------------------
--------------------
2013-09-10T12:38:49.096Z weinre: POST / [request]
2013-09-10T12:38:49.098Z weinre:    {"id":"anonymous"}
2013-09-10T12:38:49.101Z weinre: --------------------------------------------------
2013-09-10T12:38:49.102Z weinre: POST / 200 [response]
2013-09-10T12:38:49.103Z weinre:    {"channel":"c-1","id":"anonymous"}
2013-09-10T12:39:03.800Z weinre: --------------------------------------------------
2013-09-10T12:39:03.800Z weinre: POST / [request]
2013-09-10T12:39:03.801Z weinre:    {"id":"anonymous"}
2013-09-10T12:39:03.802Z weinre: --------------------------------------------------
2013-09-10T12:39:03.803Z weinre: POST / 200 [response]
2013-09-10T12:39:03.803Z weinre:    {"channel":"t-2","id":"anonymous"}
2013-09-10T12:39:03.818Z weinre: --------------------------------------------------
2013-09-10T12:39:03.818Z weinre: POST /t-2 [request]
2013-09-10T12:39:03.819Z weinre:    InspectorNotify.domContentEventFired([0.019000000000000017,null])
2013-09-10T12:39:03.820Z weinre:    InspectorNotify.loadEventFired([0.020000000000000018,null])
2013-09-10T12:39:03.821Z weinre:    WeinreTargetCommands.registerTarget(["http://localhost:8081/demo/weinre-demo.html","t-2::1"])
2013-09-10T12:39:03.824Z weinre: --------------------------------------------------
2013-09-10T12:39:03.824Z weinre: GET /c-1 200 [response]
2013-09-10T12:39:03.825Z weinre:    WeinreClientEvents.targetRegistered([{"channel":"t-2","id":"anonymous","hostName":"127.0.0.1","remoteAddress":"127.0.0.1","url":"http://localhost:808
1/demo/weinre-demo.html"}])
2013-09-10T12:39:03.826Z weinre: --------------------------------------------------
2013-09-10T12:39:03.827Z weinre: GET /t-2 200 [response]
2013-09-10T12:39:03.827Z weinre:    WeinreTargetEvents.sendCallback(["t-2::1",{"channel":"t-2","id":"anonymous","hostName":"127.0.0.1","remoteAddress":"127.0.0.1","url":"http://localhos
t:8081/demo/weinre-demo.html"}])
2013-09-10T12:39:14.974Z weinre: --------------------------------------------------
2013-09-10T12:39:14.976Z weinre: POST / [request]
2013-09-10T12:39:14.983Z weinre:    {"id":"anonymous"}
2013-09-10T12:39:14.985Z weinre: --------------------------------------------------
2013-09-10T12:39:14.986Z weinre: POST / 200 [response]
2013-09-10T12:39:14.988Z weinre:    {"channel":"c-3","id":"anonymous"}

The first bits were from when I run the demo, and then the last few were from when I tried to connect to http://localhost:8081/client/#anonymous

TIA

Andy

Patrick Mueller

unread,
Sep 10, 2013, 9:36:30 AM9/10/13
to wei...@googlegroups.com, andy....@gmail.com
There's no interesting messages being sent, which is a problem :-)

Try running both the client and target in Chrome on your desktop and then bring up Dev Tools on both, look at the console.  Maybe some errors got logged.

Andy Newby

unread,
Sep 10, 2013, 11:14:08 AM9/10/13
to wei...@googlegroups.com, andy....@gmail.com
haha thanks - still not sure if this is much more help (both demo + client run from Chrome, latest);

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.


C:\Users\Andy>weinre --boundHost -all- --httpPort 8081 --debug
2013-09-10T15:11:48.351Z weinre: pid:                 3544
2013-09-10T15:11:48.359Z weinre: version:             2.0.0-pre-HA5N9T49
2013-09-10T15:11:48.359Z weinre: node versions:
2013-09-10T15:11:48.360Z weinre:    http_parser: 1.0
2013-09-10T15:11:48.360Z weinre:    node       : 0.10.17
2013-09-10T15:11:48.360Z weinre:    v8         : 3.14.5.9
2013-09-10T15:11:48.360Z weinre:    ares       : 1.9.0-DEV
2013-09-10T15:11:48.360Z weinre:    uv         : 0.10.14
2013-09-10T15:11:48.360Z weinre:    zlib       : 1.2.3
2013-09-10T15:11:48.361Z weinre:    modules    : 11
2013-09-10T15:11:48.361Z weinre:    openssl    : 1.0.1e
2013-09-10T15:11:48.361Z weinre: options:
2013-09-10T15:11:48.361Z weinre:    httpPort:     8081
2013-09-10T15:11:48.361Z weinre:    boundHost:    -all-
2013-09-10T15:11:48.361Z weinre:    verbose:      true
2013-09-10T15:11:48.361Z weinre:    debug:        true
2013-09-10T15:11:48.361Z weinre:    readTimeout:  5
2013-09-10T15:11:48.362Z weinre:    deathTimeout: 15
2013-09-10T15:11:48.427Z weinre: starting server at http://localhost:8081
2013-09-10T15:11:56.429Z weinre: --------------------------------------------------
2013-09-10T15:11:56.430Z weinre: POST / [request]
2013-09-10T15:11:56.431Z weinre:    {"id":"anonymous"}
2013-09-10T15:11:56.434Z weinre: --------------------------------------------------
2013-09-10T15:11:56.441Z weinre: POST / 200 [response]
2013-09-10T15:11:56.442Z weinre:    {"channel":"t-1","id":"anonymous"}
2013-09-10T15:11:56.544Z weinre: --------------------------------------------------
2013-09-10T15:11:56.545Z weinre: POST /t-1 [request]
2013-09-10T15:11:56.545Z weinre:    InspectorNotify.domContentEventFired([0.010000000000000009,null])
2013-09-10T15:11:56.545Z weinre:    InspectorNotify.loadEventFired([0.01100000000000001,null])
2013-09-10T15:11:56.545Z weinre:    WeinreExtraTargetEvents.databaseOpened([{"id":1,"domain":"http://localhost:8081","name":"clicks_db","version":"1.0"},null])
2013-09-10T15:11:56.546Z weinre:    WeinreTargetCommands.registerTarget(["http://localhost:8081/demo/weinre-demo.html","t-1::1"])
2013-09-10T15:11:56.548Z weinre: --------------------------------------------------
2013-09-10T15:11:56.549Z weinre: GET /t-1 200 [response]
2013-09-10T15:11:56.549Z weinre:    WeinreTargetEvents.sendCallback(["t-1::1",{"channel":"t-1","id":"anonymous","hostName":"127.0.0.1","remoteAddress":"127.0.0.1","url":"http://localhos
t:8081/demo/weinre-demo.html"}])
2013-09-10T15:12:00.309Z weinre: --------------------------------------------------
2013-09-10T15:12:00.310Z weinre: POST / [request]
2013-09-10T15:12:00.311Z weinre:    {"id":"anonymous"}
2013-09-10T15:12:00.314Z weinre: --------------------------------------------------
2013-09-10T15:12:00.314Z weinre: POST / 200 [response]
2013-09-10T15:12:00.316Z weinre:    {"channel":"c-2","id":"anonymous"}
2013-09-10T15:12:30.186Z weinre: --------------------------------------------------
2013-09-10T15:12:30.187Z weinre: POST / [request]
2013-09-10T15:12:30.187Z weinre:    {"id":"anonymous"}
2013-09-10T15:12:30.189Z weinre: --------------------------------------------------
2013-09-10T15:12:30.189Z weinre: POST / 200 [response]
2013-09-10T15:12:30.190Z weinre:    {"channel":"c-3","id":"anonymous"}
2013-09-10T15:12:43.166Z weinre: --------------------------------------------------
2013-09-10T15:12:44.785Z weinre: GET /c-3 200 [response]
2013-09-10T15:12:44.785Z weinre:    WeinreClientEvents.clientUnregistered(["c-2"])

Fabien Quatravaux

unread,
Nov 19, 2013, 12:50:36 PM11/19/13
to wei...@googlegroups.com, andy....@gmail.com
I had the exact same symptoms and the same debug output.
I solved this issue by using google-chrome for the debug client instead of chromium. Chromium seams to not have the remote-debug feature enabled.

Andy Newby

unread,
Nov 19, 2013, 1:10:03 PM11/19/13
to wei...@googlegroups.com, andy....@gmail.com
Thanks for the reply. Unfortunately, it still doesn't wanna play ball (even with the basic demo). All I see at http://localhost:8081/client/#anonymous is a grey bar at the top, and then the title:

weinre target not connected

The annoying thing is, that I see debugging coming through on the demo pages:

2013-11-19T17:52:15.204Z weinre: GET /t-6 200 [response]
2013-11-19T17:52:15.204Z weinre: WeinreTargetEvents.sendCallback(["t-6::1",{"channel":"t-6","id":"anonymous","hostName":"127.0.0.1","remoteAddress":"127.0.0.1","url":"http://localhos
t:8081/demo/weinre-demo.html"}])
2013-11-19T17:52:17.859Z weinre: --------------------------------------------------
2013-11-19T17:52:17.859Z weinre: POST / [request]
2013-11-19T17:52:17.860Z weinre: {"id":"anonymous"}
2013-11-19T17:52:17.862Z weinre: --------------------------------------------------
2013-11-19T17:52:17.862Z weinre: POST / 200 [response]
2013-11-19T17:52:17.864Z weinre: {"channel":"c-7","id":"anonymous"}
2013-11-19T17:52:18.799Z weinre: --------------------------------------------------
2013-11-19T17:52:18.799Z weinre: GET /c-4 200 [response]
2013-11-19T17:52:18.800Z weinre: WeinreClientEvents.clientUnregistered(["c-3"])
2013-11-19T17:52:18.801Z weinre: --------------------------------------------------
2013-11-19T17:52:18.802Z weinre: GET /c-5 200 [response]
2013-11-19T17:52:18.803Z weinre: WeinreClientEvents.clientUnregistered(["c-3"])
2013-11-19T17:52:18.804Z weinre: --------------------------------------------------
2013-11-19T17:52:18.804Z weinre: GET /c-7 200 [response]
2013-11-19T17:52:18.805Z weinre: WeinreClientEvents.clientUnregistered(["c-3"])
2013-11-19T17:52:19.879Z weinre: --------------------------------------------------
2013-11-19T17:52:19.879Z weinre: POST / [request]
2013-11-19T17:52:19.880Z weinre: {"id":"anonymous"}
2013-11-19T17:52:19.880Z weinre: --------------------------------------------------
2013-11-19T17:52:19.880Z weinre: POST / 200 [response]
2013-11-19T17:52:19.880Z weinre: {"channel":"c-8","id":"anonymous"}
2013-11-19T17:52:30.969Z weinre: --------------------------------------------------
2013-11-19T17:52:30.970Z weinre: GET /c-5 200 [response]
2013-11-19T17:52:30.971Z weinre: WeinreClientEvents.clientUnregistered(["c-4"])
2013-11-19T17:52:30.972Z weinre: --------------------------------------------------
2013-11-19T17:52:30.973Z weinre: GET /c-8 200 [response]
2013-11-19T17:52:30.973Z weinre: WeinreClientEvents.clientUnregistered(["c-4"])
2013-11-19T17:52:34.010Z weinre: --------------------------------------------------
2013-11-19T17:52:34.010Z weinre: GET /c-5 200 [response]
2013-11-19T17:52:34.011Z weinre: WeinreClientEvents.clientUnregistered(["c-7"])
2013-11-19T17:52:34.012Z weinre: --------------------------------------------------
2013-11-19T17:52:34.013Z weinre: GET /c-8 200 [response]
2013-11-19T17:52:34.013Z weinre: WeinreClientEvents.clientUnregistered(["c-7"])
2013-11-19T18:04:21.669Z weinre: --------------------------------------------------
2013-11-19T18:04:21.669Z weinre: POST / [request]
2013-11-19T18:04:21.670Z weinre: {"id":"anonymous"}
2013-11-19T18:04:21.671Z weinre: --------------------------------------------------
2013-11-19T18:04:21.672Z weinre: POST / 200 [response]
2013-11-19T18:04:21.673Z weinre: {"channel":"c-9","id":"anonymous"}
2013-11-19T18:04:33.977Z weinre: --------------------------------------------------
2013-11-19T18:04:33.977Z weinre: POST / [request]
2013-11-19T18:04:33.979Z weinre: {"id":"anonymous"}
2013-11-19T18:04:33.980Z weinre: --------------------------------------------------
2013-11-19T18:04:33.980Z weinre: POST / 200 [response]
2013-11-19T18:04:33.981Z weinre: {"channel":"t-10","id":"anonymous"}
2013-11-19T18:04:34.026Z weinre: --------------------------------------------------
2013-11-19T18:04:34.026Z weinre: POST /t-10 [request]
2013-11-19T18:04:34.028Z weinre: WeinreTargetCommands.registerTarget(["http://localhost:8081/demo/weinre-demo.html","t-10::1"])
2013-11-19T18:04:34.029Z weinre: --------------------------------------------------
2013-11-19T18:04:34.029Z weinre: GET /c-5 200 [response]
2013-11-19T18:04:34.030Z weinre: WeinreClientEvents.targetRegistered([{"channel":"t-10","id":"anonymous","hostName":"127.0.0.1","remoteAddress":"127.0.0.1","url":"http://localhost:80
81/demo/weinre-demo.html"}])
2013-11-19T18:04:34.035Z weinre: --------------------------------------------------
2013-11-19T18:04:34.035Z weinre: GET /c-9 200 [response]
2013-11-19T18:04:34.036Z weinre: WeinreClientEvents.targetRegistered([{"channel":"t-10","id":"anonymous","hostName":"127.0.0.1","remoteAddress":"127.0.0.1","url":"http://localhost:80
81/demo/weinre-demo.html"}])
2013-11-19T18:04:34.042Z weinre: --------------------------------------------------
2013-11-19T18:04:34.043Z weinre: GET /t-10 200 [response]
2013-11-19T18:04:34.044Z weinre: WeinreTargetEvents.sendCallback(["t-10::1",{"channel":"t-10","id":"anonymous","hostName":"127.0.0.1","remoteAddress":"127.0.0.1","url":"http://localh
ost:8081/demo/weinre-demo.html"}])
-----------------------------------
2013-11-19T18:05:04.376Z weinre: GET /c-9 200 [response]
2013-11-19T18:05:04.377Z weinre: WeinreClientEvents.targetUnregistered(["t-10"])
2013-11-19T18:05:09.444Z weinre: --------------------------------------------------
2013-11-19T18:05:09.444Z weinre: GET /c-9 200 [response]
2013-11-19T18:05:09.446Z weinre: WeinreClientEvents.targetUnregistered(["t-11"])
2013-11-19T18:05:13.814Z weinre: --------------------------------------------------
2013-11-19T18:05:13.814Z weinre: POST / [request]
2013-11-19T18:05:13.815Z weinre: {"id":"anonymous"}
2013-11-19T18:05:13.817Z weinre: --------------------------------------------------
2013-11-19T18:05:13.817Z weinre: POST / 200 [response]
2013-11-19T18:05:13.818Z weinre: {"channel":"c-13","id":"anonymous"}
2013-11-19T18:06:39.402Z weinre: --------------------------------------------------
2013-11-19T18:06:39.403Z weinre: POST / [request]
2013-11-19T18:06:39.404Z weinre: {"id":"anonymous"}
2013-11-19T18:06:39.405Z weinre: --------------------------------------------------
2013-11-19T18:06:39.405Z weinre: POST / 200 [response]
2013-11-19T18:06:39.406Z weinre: {"channel":"t-14","id":"anonymous"}
2013-11-19T18:06:39.439Z weinre: --------------------------------------------------
2013-11-19T18:06:39.440Z weinre: POST /t-14 [request]
2013-11-19T18:06:39.441Z weinre: InspectorNotify.domContentEventFired([0.026000000000000023,null])
2013-11-19T18:06:39.442Z weinre: InspectorNotify.loadEventFired([0.031000000000000028,null])
2013-11-19T18:06:39.442Z weinre: WeinreTargetCommands.registerTarget(["http://localhost:8081/demo/weinre-demo.html","t-14::1"])
2013-11-19T18:06:39.444Z weinre: --------------------------------------------------
2013-11-19T18:06:39.444Z weinre: GET /t-14 200 [response]
2013-11-19T18:06:39.445Z weinre: WeinreTargetEvents.sendCallback(["t-14::1",{"channel":"t-14","id":"anonymous","hostName":"127.0.0.1","remoteAddress":"127.0.0.1","url":"http://localh
ost:8081/demo/weinre-demo.html"}])
2013-11-19T18:07:36.888Z weinre: --------------------------------------------------
2013-11-19T18:07:36.889Z weinre: POST / [request]
2013-11-19T18:07:36.889Z weinre: {"id":"anonymous"}
2013-11-19T18:07:36.890Z weinre: --------------------------------------------------
2013-11-19T18:07:36.890Z weinre: POST / 200 [response]
2013-11-19T18:07:36.890Z weinre: {"channel":"t-15","id":"anonymous"}
2013-11-19T18:07:36.926Z weinre: --------------------------------------------------
2013-11-19T18:07:36.927Z weinre: POST /t-15 [request]
2013-11-19T18:07:36.927Z weinre: InspectorNotify.domContentEventFired([0,null])
2013-11-19T18:07:36.927Z weinre: InspectorNotify.loadEventFired([0,null])
2013-11-19T18:07:36.928Z weinre: WeinreExtraTargetEvents.databaseOpened([{"id":1,"domain":"http://localhost:8081","name":"clicks_db","version":"1.0"},null])
2013-11-19T18:07:36.929Z weinre: WeinreTargetCommands.registerTarget(["http://localhost:8081/demo/weinre-demo-min.html","t-15::1"])
2013-11-19T18:07:36.932Z weinre: --------------------------------------------------
2013-11-19T18:07:36.932Z weinre: GET /t-15 200 [response]
2013-11-19T18:07:36.933Z weinre: WeinreTargetEvents.sendCallback(["t-15::1",{"channel":"t-15","id":"anonymous","hostName":"127.0.0.1","remoteAddress":"127.0.0.1","url":"http://localh
ost:8081/demo/weinre-demo-min.html"}])
2013-11-19T18:08:04.874Z weinre: --------------------------------------------------
2013-11-19T18:08:04.875Z weinre: POST / [request]
2013-11-19T18:08:04.876Z weinre: {"id":"anonymous"}
2013-11-19T18:08:04.878Z weinre: --------------------------------------------------
2013-11-19T18:08:04.878Z weinre: POST / 200 [response]
2013-11-19T18:08:04.878Z weinre: {"channel":"c-16","id":"anonymous"}
2013-11-19T18:08:12.980Z weinre: --------------------------------------------------
2013-11-19T18:08:12.980Z weinre: GET /c-16 200 [response]
2013-11-19T18:08:12.982Z weinre: WeinreClientEvents.targetUnregistered(["t-15"])


...but the panel never loads, to let me see if its working there :/

Cheers

Andy


Andy Newby

unread,
Nov 19, 2013, 1:48:09 PM11/19/13
to wei...@googlegroups.com, andy....@gmail.com
There has to be something wrong. I install nodejs on my Win8 laptop, then install weinre via node, and then run the demo page... it all works fine.

Yet my Win7 PC (which is the ideal place, as its not limited  to a 20" screen!) refuses to load. I've tried uninstalling weinre:

Your environment has been set up for using Node.js 0.10.17 (ia32) and npm.

C:\Users\Andy>npm uninstall weinre
npm WARN uninstall not installed in C:\Users\Andy\node_modules: "weinre"

..but as you can see, it tells me its not even installed... yet when I run

C:\Users\Andy>weinre --boundHost -all- --httpPort 8081
2013-11-19T18:44:01.140Z weinre: starting server at http://localhost:8081
C:\Users\Andy>weinre --boundHost -all- --httpPort 8089

...it works fine. Really bloomin annoying (its been stopping me getting my iOS app working for the last few months, as I don't have a Mac (and refuse to spend thousands on a capable one, just to debug an app- damn Apple!!!!). My Android version works just fine, which is whats so annoying about it.

Cheers

Andy

Patrick Mueller

unread,
Nov 19, 2013, 2:41:24 PM11/19/13
to wei...@googlegroups.com, Andy Newby
I think you meant `npm -g uninstall weinre`.  Try that, followed by `npm -g install weinre`.  Also check and see if you have some rogue version of `weinre` installed on your path somewhere.


--
--
From the weinre Google Group -- http://groups.google.com/group/weinre
 
---
You received this message because you are subscribed to the Google Groups "weinre" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Andy Newby

unread,
Nov 19, 2013, 2:46:10 PM11/19/13
to wei...@googlegroups.com, Andy Newby
You absolute legend... that did the trick! Uninstalled (with -g this time), then re-installed and now it works fine (even in Firefox)

Thanks - now I can hopefully debug my iOS app =)

Cheers

Andy
Reply all
Reply to author
Forward
0 new messages