Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2346] Login failed: SyntaxError: Unexpected token

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-07-15T23:22:06.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsfailed, login, syntaxerror
ReporterKyle Holmes
AssigneeMauro Parra-Miranda
Created2013-07-11T17:59:49.000+0000
Updated2016-03-08T07:41:22.000+0000

Description

When I run titanium status it says i'm currently logged out. So, when I run the titanium login command and put in my credentials (they are correct because I can login to the website) it gives me this error: "Login failed: SyntaxError: Unexpected token." I am using a proxy, but I was getting a timeout error before I configured the proxy, but after configuring it I'm getting this error so I don't think it's related to the proxy. I'm not sure though. Any help would be great!

Comments

  1. Daniel Sefton 2013-07-11

    Please run the following in Terminal:
    titanium config cli.httpProxyServer "http://<IP>:<PORT>"
    Also be sure that the following ports are added to your whitelist: https://api.appcelerator.net (ports 80 and 443) Used for login http://studio.appcelerator.com (ports 80 and 443) Used for the dashboard http://download.appcelerator.com (ports 80 and 443) Used for software updates
  2. Kyle Holmes 2013-07-11

    I've already done that. When I run titanium config it shows my proxy. How do I add those ports to my whitelist?
  3. Daniel Sefton 2013-07-11

    You can refer to the instruction manual of whatever Firewall you're using.
  4. Kyle Holmes 2013-07-11

    Why would the ports not being allowed in the firewall lead to the syntax error i'm receiving?
  5. Daniel Sefton 2013-07-11

    Please can you post the full output of calling titanium login? Can you not run Studio at all? (Just wondering encase you're able to post your Studio logs). If not, can you post your Studio version. Also post the version given with
    titanium -v

JSON Source