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

Javascript error in Admin interface running 'SHOW CONTINUOUS QUERIES' #3820

Closed
nathanielc opened this issue Aug 24, 2015 · 5 comments
Closed
Assignees
Milestone

Comments

@nathanielc
Copy link
Contributor

When you run SHOW CONTINUOUS QUERIES you get a js error Uncaught TypeError: Cannot read property 'map' of undefined https://github.com/influxdb/influxdb/blob/master/shared/admin/js/admin.js#L312

Looking at the JSON response from the server the queries are returned but js error prevents them from being displayed.

version 0.9.3

@kenXengineering
Copy link

It looks like in build 0.9.4.1 this is still an issue. When I search for SHOW CONTINUOUS QUERIES I get the response Query returned no results!, however when I view the response I see the continuous query was returned as json.

{
  "results": [
    {
      "series": [
        {
          "name": "_internal",
          "columns": [
            "name",
            "query"
          ]
        },
        {
          "name": "mod_stats",
          "columns": [
            "name",
            "query"
          ],
          "values": [
            [
              "gobal_request_counts",
              "CREATE CONTINUOUS QUERY gobal_request_counts ON mod_stats BEGIN SELECT count(value) INTO \"mod_stats\".\"default\".\"global.1m\" FROM \"mod_stats\".\"default\".atlas_response_global GROUP BY time(1m) END"
            ]
          ]
        }
      ]
    }
  ]
}

@beckettsean beckettsean modified the milestones: 0.9.5, 0.9.4 Sep 18, 2015
@beckettsean
Copy link
Contributor

Confirmed that 0.9.4.1 Admin UI appears to do nothing when submitting SHOW CONTINUOUS QUERIES but the result is indeed returned, just never displayed.

@jeanpralo
Copy link

I have the same problem using the nightly build: "0.9.5-nightly-ace0e03"

A call to the api works

curl -G http://127.0.0.1:8086/query --data-urlencode “db=db" --data-urlencode "q=show continuous queries”

@nathanielc
Copy link
Contributor Author

This is fixed as part of #4375

A few show queries would return a row with no values and caused a js error. A check is now in place.

@nathanielc
Copy link
Contributor Author

Fixed by #4375

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

5 participants