Syntax error in 1Passwordanywhere

David____
David____
Community Member

Hi. I get syntax error and can't log in to my 1Passwordanywhere.

I've tested multiple browsers on both Mac and Linux, both directly from Dropbox and from a local webserver.

In Firefox I get: SyntaxError: missing ; before statement
And in Safari and Chrome/Chromium: Uncaught SyntaxError: Unexpected token :
(notice that Firefox complains about a semi-colon and the rest about a regular colon)

No browser tells me what line this error is. Chromium just points to either (program):1 or VM:1, the latter is a valid json file of encrypted strings and iterations.

Hope some of this helps.
David

Comments

  • Hi @David____,

    It sounds like the 1Password.html file may be corrupt.

    Try deleting the 1Password.html file, then run 1Password on any device (the app will regenerate it). That should hopefully fix it.

    Let us know if that helps! :)

  • David____
    David____
    Community Member

    No that didn't work. Tried to recreate it from both a Mac and an iPad.

  • David____
    David____
    Community Member

    Also tried to remove and resync with Dropbox but no different.

  • Drew_AG
    Drew_AG
    1Password Alumni

    Hi @David____,

    Can you confirm that you're opening the 1Password.html file from your account on the dropbox.com website? Or are you trying to open it from your local computer file system?

    Also, it might help to delete & recreate the entire .agilekeychain file/folder in Dropbox. Before doing that, can you please let us know which computers/devices you have 1Password installed on, and the version of 1Password installed on each?

  • David____
    David____
    Community Member
    edited February 2015

    Both from Dropbox.com and a local webserver. It seems to be some generated structure in the webapp since it not pointing to a special line. You do have a few eval() calls in 1Password.html

    I did a full reinstall where I first exported my passwords, deleted the app and the folder ~/Library/Application Support/1Password 4, redownloaded the app from your site and imported my passwords again. Still the error....

    Is there any difference between viewing through Dropbox and a local server?

  • Hi @David____ ,

    There shouldn't be any real difference between viewing it through Dropbox and a local webserver. I've used both successfully. I just did it here via python -m SimpleHTTPServer locally and it worked.

    Do you have any browser extensions installed that could be interfering with anything? Would you mind sending me the 1Password.html file itself (it contains no private data), so that I can see if it looks right?

    Rick

  • David____
    David____
    Community Member
    edited February 2015

    That the same way I do.

    Wasn't allowed to attach 1Password.html but here is a copy:
    https://dl.dropboxusercontent.com/u/1267763/1Password.html
    There is no syntax error but encryptionKeys.js hasn't loaded yet.

  • @David____,

    Thanks. I just checked it out here, and our 1Password.html files are exactly the same:

    That rules that out. When loading in Safari (and similarly in Chrome) I get this error, but it doesn't stop me from being able to use it:

    [Error] SyntaxError: Unexpected token ':'. Parse error.
    insertBefore (1Password.html, line 1)
    globalEval (1Password.html, line 739)
    httpData (1Password.html, line 842)
    onreadystatechange (1Password.html, line 839)

    That looks to be the same error you're getting, which tells me that that's not the cause of your issues.

    For kicks have you tried creating a new agilekeychain? Could be done for testing by disconnecting from this one, then setting up sync and pointing it to a new directory. If that works, then I'd be curious to know what the differences between the two agilekeychains would be. Kaleidoscope's Folder Diff utility is quite good (ok I may be biased since I helped write it).

    Let's try that and see if we learn anything.

    Rick

  • David____
    David____
    Community Member
    edited February 2015

    Nice app that Kaleidoscope, I created a new keychain when I reimported after installation is that enough?
    https://dl.dropboxusercontent.com/u/1267763/1Password_screenshot.png

    EDIT:

    Wait I think I found the error. It's a encoding issue. I changed my password to only have ascii characters and now I can log in.

  • @David____,

    Ohhh... that's... interesting/strange. Considering the password isn't stored anywhere as a string at all (technically it's not stored at all), I'm not sure how that could happen. Could you tell me which non-ascii characters you were using? I'll see if I can repro here with those and if so I'll file a bug against this.

    Rick

  • David____
    David____
    Community Member

    Thats the fun bugs ;)

    It was an 'ö'

  • rickfillion
    edited February 2016

    @David___,

    I created a vault with ööö as the password, and synced it to dropbox. 1PasswordAnywhere loaded up, but doesn't let me unlock it. The main app doesn't let me unlock it either, for that matter. Filing a bug against this (OPM-2846) so that we can figure out what's going on here. Thanks for making us aware of it.

    Rick

    ref: OPM-2846

  • David____
    David____
    Community Member

    Nice to be of help. I don't have the main app problem but the other sounds exactly like my experience.

    Have a nice day

  • Yeah, I was mistaken. The main app problem wasn't due to the Master Password, but the mini crashed on me in the background. Restarted things properly and now can unlock via the main app, but not in 1PA still. So not quite as serious of a bug as I thought, but still something we should look into.

This discussion has been closed.