-
Notifications
You must be signed in to change notification settings - Fork 92
Description
Hi,
I've set up both aggr and aggr-server locally (no docker, just on my localhost)
-Is it possible to run it without influxDb? (I see that ./data dir is populated with exchanges pairs data)
When I open aggr on http://localhost:8081/ I see an error on the terminal where I've started aggr-server.
Every time I try to refresh the page this is printed on the terminal:
TypeError: Cannot read properties of undefined (reading 'format')
at /Users/sasoftware/Desktop/test/aggr-server/src/server.js:413:21
at Layer.handle [as handle_request] (/Users/sasoftware/Desktop/test/aggr-server/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/sasoftware/Desktop/test/aggr-server/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/Users/sasoftware/Desktop/test/aggr-server/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/Users/sasoftware/Desktop/test/aggr-server/node_modules/express/lib/router/layer.js:95:5)
at /Users/sasoftware/Desktop/test/aggr-server/node_modules/express/lib/router/index.js:284:15
at param (/Users/sasoftware/Desktop/test/aggr-server/node_modules/express/lib/router/index.js:365:14)
at param (/Users/sasoftware/Desktop/test/aggr-server/node_modules/express/lib/router/index.js:376:14)
at param (/Users/sasoftware/Desktop/test/aggr-server/node_modules/express/lib/router/index.js:376:14)
at param (/Users/sasoftware/Desktop/test/aggr-server/node_modules/express/lib/router/index.js:376:14)
What am I doing wrong? Am I missing something?
aggr-server:
-I've copied the config.json.example into config.json without any changes
-I've tries to comment INFLUX_HOST and INFLUX_PORT from .env file
http://localhost:3000/ responds with {"message":"hi"} so I think it's set up correctly
aggr:
-I've added API_URL with the url of the server (http://localhost:3000/) to .env and .env.production, also tried to run with API_URL=http://localhost:3000/ npm run serve
Aggr without the historical data works fine (even if I see some errors on the webpage)
When I try to add the aggr-server connection nothing changes except for the error I see in the terminal