Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11584] CLI: Can't build without connection

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-11-07T22:08:11.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 22 JS, 2012 Sprint 22
ComponentsCLI
Labelscli, look1, privacy, proxy, triage
ReporterMartin Guillon
AssigneeChris Barber
Created2012-10-24T06:53:09.000+0000
Updated2017-03-16T22:20:09.000+0000

Description

If no connection(behind proxy and proxy not set for example) i cant even build my app By the way it way mention in bold that every build is logged and sent to Appcelerator! Personally i dont really like that, and will disable it. Also we MUST be able to build without connection or behind a proxy.
[ERROR] Missing required option "--username"

[ERROR] Missing required option "--password"

/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/analytics.js:234
			callback(error, (!error && response.statusCode == 204) ? undefined : i);
			                                                                     ^
ReferenceError: i is not defined
    at Request._callback (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/analytics.js:234:73)
    at Request.init.self.callback (/usr/local/lib/node_modules/titanium/node_modules/request/main.js:120:22)
    at Request.EventEmitter.emit (events.js:93:17)
    at ClientRequest.Request.init.self.clientErrorHandler (/usr/local/lib/node_modules/titanium/node_modules/request/main.js:223:10)
    at ClientRequest.EventEmitter.emit (events.js:93:17)
    at CleartextStream.socketErrorListener (http.js:1331:9)
    at CleartextStream.EventEmitter.emit (events.js:93:17)
    at Socket.onerror (tls.js:1318:17)
    at Socket.EventEmitter.emit (events.js:123:20)
    at Socket._destroy.self.errorEmitted (net.js:328:14)

Comments

  1. Javier 2013-01-26

    Why does it say Status Resolved? I have latest Titanium and I can't start it without Internet connection, and if I connect and start it and then disconnect and try to build it doesn't work either. Why do we have to be connected? Can't we develope when we aren't at home?
  2. Chris Barber 2013-01-26

    @Javier, this ticket is resolved because the bug above was fixed. There have since been other bugs related to not being able to build without an internet connection. All of those bugs have been fixed and will be in the next upcoming release. FWIW, if you run "titanium login" at the command line, you will be logged in forever. So, just login at the command line when you hop online and you should be good to go.
  3. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source