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

TypeError: Cannot read property 'privateKeys' of undefined #32

Open
mvshvets opened this issue Jul 17, 2022 · 1 comment
Open

TypeError: Cannot read property 'privateKeys' of undefined #32

mvshvets opened this issue Jul 17, 2022 · 1 comment

Comments

@mvshvets
Copy link

mvshvets commented Jul 17, 2022

Run trontools/quickstart:

docker run -it \
  -p 9090:9090 \
  --rm \
  --name tron \
  -d \
  trontools/quickstart

image

Run curl:

>> curl http://127.0.0.1:9090/admin/accounts
curl: (52) Empty reply from server

Docker-desktop console:

ADMIN /admin/accounts
(node:101) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'privateKeys' of undefined
    at flatAccounts (/tron/app/src/routes/admin.js:15:37)
    at getBalances (/tron/app/src/routes/admin.js:27:21)
    at /tron/app/src/routes/admin.js:127:26
    at Layer.handle [as handle_request] (/tron/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/tron/app/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/tron/app/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/tron/app/node_modules/express/lib/router/layer.js:95:5)
    at /tron/app/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/tron/app/node_modules/express/lib/router/index.js:335:12)
    at next (/tron/app/node_modules/express/lib/router/index.js:275:10)
@DanielG-2
Copy link

DanielG-2 commented Jul 18, 2022

I've got the same issue. I even tried to request /admin/accounts-generation but I got into an endless loop of this:
Sleeping for 1 second... Slept. Sleeping for 1 second... Slept. Sleeping for 1 second... Slept. Sleeping for 1 second... Slept. Sleeping for 1 second...(163) Waiting for sync...

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

2 participants