Better diagnostic for wrong accessToken #494
Description
Hi! Below goes an original message about my problem.
I've managed to solve the problem. The cause of the problem described below was wrong accessToken.
It is just pure luck, I've found the solution, I've doublecheck everything, and found that token is copy-pasted in wrong way.
It would be nice to have better diagnostic for accessToken problem, that will allow to narrow down the possible source of the problem. So I did not have to check just everything...
Hi! I've been trying to setup dimension on current Debian Stable (Debian 11 aka Bullseye), following instruction
https://github.com/turt2live/matrix-dimension/blob/master/docs/installing.md
But when I reach
1
NODE_ENV=production npm run start:app
it finishes with error:
npm ERR! code 1
npm ERR! path /srv/dimension/app
npm ERR! command failed
npm ERR! command sh -c npm run-script build && node build/app/index.js
npm ERR! A complete log of this run can be found in:
npm ERR! /home/nataraj/.npm/_logs/2022-08-16T13_28_02_005Z-debug.log
When I look in the log file, it says:
....
18 timing config:load Completed in 20ms
19 verbose npm-session 55ca714867b19ea5
20 timing npm:load Completed in 41ms
21 timing command:run-script Completed in 168099ms
22 verbose stack Error: command failed
22 verbose stack at ChildProcess.<anonymous> (/usr/share/nodejs/@npmcli/promise-spawn/index.js:64:27)
22 verbose stack at ChildProcess.emit (events.js:314:20)
22 verbose stack at maybeClose (internal/child_process.js:1022:16)
22 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
23 verbose pkgid [email protected]
24 verbose cwd /srv/dimension/app
25 verbose Linux 5.10.0-9-amd64
26 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "start:app"
27 verbose node v12.22.12
28 verbose npm v7.5.2
29 error code 1
30 error path /srv/dimension/app
31 error command failed
32 error command sh -c npm run-script build && node build/app/index.js
33 verbose exit 1
I am no node.js developer, I have no idea what all this mean...
Can you please help me make it up and running?