<div dir="ltr">Hi all,<div><br></div><div>I'm working to merge Sugarizer and Sugar Web API.</div><div>I've just found an issue that I thought it was related to my work but that is not because I've found the same issue in the last version of Maze Web [1].</div>
<div><br></div><div>The symptom is that the icon don't use buddy color and that the Stop button don't answer.</div><div>The trace show that the Sugar Web API don't retrieve correctly the web socket port. The port is undefined in bus.js [2]. See the log below - tested on last Sugar 0.100 build on XO-4.</div>
<div><br></div><div>I suspect that it come from a recent update of Sugar Web API because the problem doesn't appear on the same machine with an older Sugar Web Activity like FoodChain [3] - that use an old version of Sugar Web API.</div>
<div><br></div><div>BTW I didn't find why this variable could not be initialized :-(</div><div><br></div><div>Any idea ?</div><div><br></div><div>                Lionel.</div><div><br></div><div><br></div><div><br></div>
<div>[1] <a href="http://activities.sugarlabs.org/en/sugar/addon/4727">http://activities.sugarlabs.org/en/sugar/addon/4727</a></div><div>[2] <a href="https://github.com/sugarlabs/sugar-web/blob/master/bus.js#L19">https://github.com/sugarlabs/sugar-web/blob/master/bus.js#L19</a></div>
<div>[3] <a href="http://activities.sugarlabs.org/en/sugar/addon/4612">http://activities.sugarlabs.org/en/sugar/addon/4612</a></div><div><br></div><div><br></div><div><br></div><div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:02] "GET /lib/sugar-web/activity/shortcut.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/bus.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/env.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/datastore.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/icon.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/activitypalette.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/rot.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/palette.js HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/text.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/activitypalette.html HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/domReady.js HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/icons/emblems/arrow-down.svg HTTP/1.1" 200 -</div><div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /activity/activity-icon.svg HTTP/1.1" 200 -</div>
<div>xo-d2-7d-0b.localdomain - - [24/Feb/2014 22:03:03] "GET /lib/sugar-web/graphics/icons/emblems/arrow-up.svg HTTP/1.1" 200 -</div><div>** Message: console message: <a href="http://0.0.0.0:36408">http://0.0.0.0:36408</a> @0: Invalid url for WebSocket ws://localhost:undefined</div>
<div><br></div><div>** Message: console message: <a href="http://0.0.0.0:36408/lib/sugar-web/bus.js">http://0.0.0.0:36408/lib/sugar-web/bus.js</a> @19: SYNTAX_ERR: DOM Exception 12: An invalid or illegal string was specified.</div>
<div><br></div></div></div>