Skip to content
Snippets Groups Projects
Select Git revision
  • master protected
  • test default protected
  • original
  • pirati-backup protected
  • beta-2
  • beta-1
  • v3.1.4
  • v3.1.3
  • v3.1.2
  • v3.1.1
  • v3.1.0
  • v3.0.16
  • v3.0.15
  • v3.0.14
  • v3.0.13
  • v3.0.12
  • v3.0.11
  • v3.0.10
  • v3.0.9
  • v3.0.8
  • v3.0.7
  • v3.0.6
  • v3.0.5
  • v3.0.4
24 results

verify.html

Blame
    • Shirlei Chaves's avatar
      cc5764b0
      Catch non json results when verifying election · cc5764b0
      Shirlei Chaves authored
      If you try to verify a election and you aren't allowed, you get the following
      error. This is because it is expected a JSON result and you get, for instance,
      a html page to login.
      
      VM65:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
          at JSON.parse (<anonymous>)
          at Function.HELIOS.Election.fromJSONString (helios.js:127)
          at Object.success (verify.html?election_url=/helios/elections/258ca6b1-afa4-49a3-b484-c31679d2ebbe:100)
          at success (jquery-1.2.2.min.js:28)
          at onreadystatechange (jquery-1.2.2.min.js:27)
      cc5764b0
      History
      Catch non json results when verifying election
      Shirlei Chaves authored
      If you try to verify a election and you aren't allowed, you get the following
      error. This is because it is expected a JSON result and you get, for instance,
      a html page to login.
      
      VM65:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
          at JSON.parse (<anonymous>)
          at Function.HELIOS.Election.fromJSONString (helios.js:127)
          at Object.success (verify.html?election_url=/helios/elections/258ca6b1-afa4-49a3-b484-c31679d2ebbe:100)
          at success (jquery-1.2.2.min.js:28)
          at onreadystatechange (jquery-1.2.2.min.js:27)