Skip to content

Can't retrieve data #48

@matteoberla

Description

@matteoberla

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions