-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Hello,
I've just started learning CubeJS. I followed this article to intergrate CubeJS to NodeJS Express : https://statsbot.co/blog/node-express-analytics-dashboard-with-cubejs/. In the end, when I run the server, there is an infinity loop with theses messages :
GET /cubejs-api/v1/load?query=%7B%22measures%22%3A%5B%22Tweets.count%22%5D%2C%22dimensions%22%3A%5B%22Tweets.location%22%5D%2C%22filters%22%3A%5B%7B%22dimension%22%3A%22Tweets.location%22%2C%22operator%22%3A%22notEquals%22%2C%22values%22%3A%5B%22%22%5D%7D%5D%2C%22limit%22%3A5%7D 200 5017.397 ms - 25
Load Request: {"query":"{"measures":["Tweets.count"],"dimensions":["Tweets.location"],"filters":[{"dimension":"Tweets.location","operator":"notEquals","values":[""]}],"limit":5}","authInfo":{"iat":1560350861,"exp":1560437261}}
Query started: {"query":"SELECT user.location tweets.location, count() tweets.count FROM tweets AS tweets WHERE (user.location <> ?) GROUP BY 1 ORDER BY 2 DESC LIMIT 5","params":[""]}
Missing cache for: {"cacheKey":["SELECT\n user.location tweets.location, count() tweets.count\n FROM\n tweets AS tweets\n WHERE (user.location <> ?) GROUP BY 1 ORDER BY 2 DESC LIMIT 5",[""],[]]}
Missing cache for: {"cacheKey":["select count(*) from tweets AS tweets",[]]}
My .env :
CUBEJS_DB_HOST=localhost
CUBEJS_DB_NAME=twitter
CUBEJS_DB_TYPE=mongobi
CUBEJS_DB_PORT=3307
CUBEJS_API_SECRET=79dff8180bf3f64b916cd110d26729f458b36cbdc69f2ed73d03356a62c63766bc34d605beaa13c7d587dd0b6153504ac378c9893bf6cfafa0f1bdb55e0c4c6b
In index.hbs in views folder, I also modified the cubejs token and apiUrl parameter.
It didn't work, I tried downloading the project from Github but I ran into the same problem.
But, when I create a serverless application using cubejs CLI it worked.
Can someone help me ?
Thank you