Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kibiter crashes due to JS syntax error #40

Open
canasdiaz opened this issue Nov 15, 2017 · 6 comments
Open

Kibiter crashes due to JS syntax error #40

canasdiaz opened this issue Nov 15, 2017 · 6 comments
Assignees

Comments

@canasdiaz
Copy link

Kibana version: 5.1.1

Elasticsearch version: 5.1.1

Server OS version: NA

Browser version: Chromium 60.0.3112.78

Browser OS version: NA

Original install method (e.g. download page, yum, from source, etc.): NA

Description of the problem including expected versus actual behavior: Kibiter does not server any content but an Internal Server Error

Steps to reproduce:

  1. Go to Kibiter's URL
  2. Look at your screen

Provide logs and/or server output (if relevant):

{  
   "type":"error",
   "@timestamp":"2017-11-15T13:13:41Z",
   "tags":[  

   ],
   "pid":1,
   "level":"error",
   "message":"/opt/kibana/src/ui/views/chrome.jade:12\n    10|     meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')\n    11|     meta(name='viewport', content='width=device-width')\n  > 12|     meta(name='description', content='Bitergia analytics for 'Mozilla' provided by Bitergia using GrimoireLab Open Source technology')\n    13|     title Bitergia Analytics\n    14|     style.\n    15|       @font-face {\n\nUnexpected identifier",
   "error":{  
      "message":"/opt/kibana/src/ui/views/chrome.jade:12\n    10|     meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')\n    11|     meta(name='viewport', content='width=device-width')\n  > 12|     meta(name='description', content='Bitergia analytics for 'Mozilla' provided by Bitergia using GrimoireLab Open Source technology')\n    13|     title Bitergia Analytics\n    14|     style.\n    15|       @font-face {\n\nUnexpected identifier",
      "name":"SyntaxError",
      "stack":"SyntaxError: /opt/kibana/src/ui/views/chrome.jade:12\n    10|     meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')\n    11|     meta(name='viewport', content='width=device-width')\n  > 12|     meta(name='description', content='Bitergia analytics for 'Mozilla' provided by Bitergia using GrimoireLab Open Source technology')\n    13|     title Bitergia Analytics\n    14|     style.\n    15|       @font-face {\n\nUnexpected identifier\n    at assertExpression (/opt/kibana/node_modules/jade/lib/lexer.js:30:3)\n    at Object.attrs (/opt/kibana/node_modules/jade/lib/lexer.js:676:20)\n    at Object.next (/opt/kibana/node_modules/jade/lib/lexer.js:939:15)\n    at Object.lookahead (/opt/kibana/node_modules/jade/lib/lexer.js:113:46)\n    at Parser.lookahead (/opt/kibana/node_modules/jade/lib/parser.js:102:23)\n    at Parser.peek (/opt/kibana/node_modules/jade/lib/parser.js:79:17)\n    at Parser.tag (/opt/kibana/node_modules/jade/lib/parser.js:773:22)\n    at Parser.parseTag (/opt/kibana/node_modules/jade/lib/parser.js:759:17)\n    at Parser.parseExpr (/opt/kibana/node_modules/jade/lib/parser.js:211:21)\n    at Parser.block (/opt/kibana/node_modules/jade/lib/parser.js:729:25)\n    at Parser.tag (/opt/kibana/node_modules/jade/lib/parser.js:838:24)\n    at Parser.parseTag (/opt/kibana/node_modules/jade/lib/parser.js:759:17)\n    at Parser.parseExpr (/opt/kibana/node_modules/jade/lib/parser.js:211:21)\n    at Parser.block (/opt/kibana/node_modules/jade/lib/parser.js:729:25)\n    at Parser.tag (/opt/kibana/node_modules/jade/lib/parser.js:838:24)\n    at Parser.parseTag (/opt/kibana/node_modules/jade/lib/parser.js:759:17)"
   },
   "url":{  
      "protocol":null,
      "slashes":null,
      "auth":null,
      "host":null,
      "port":null,
      "hostname":null,
      "hash":null,
      "search":"",
      "query":{  

      },
      "pathname":"/app/kibana",
      "path":"/app/kibana",
      "href":"/app/kibana"
   }
}

@dlumbrer
Copy link

There is a problem with the single quotes ( ' )

I'm going to fix it

@canasdiaz
Copy link
Author

Hey @dlumbrer, the current string it is not very well written. Instead of 👍

  • 'Bitergia analytics for My Project provided by Bitergia using GrimoireLab Open Source technology'
    I would use:
  • 'Bitergia Analytics for My Project powered by GrimoireLab Open Source technology'

@dlumbrer
Copy link

Hi @sanacl,

I didn't choose that string. I agree with you but we have to discuss that change with @jsmanrique.

@jsmanrique
Copy link

Or even more simple:
'Bitergia Analytics for {{Project}}, powered by GrimoireLab technology'

@dlumbrer
Copy link

@jsmanrique, Understood!

I have already talked with @sanacl, I'm going to change it and make the PR!

@dlumbrer
Copy link

The new image of kibiter is already built in docker-hub!!

@dlumbrer dlumbrer assigned dlumbrer and canasdiaz and unassigned dlumbrer Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants