Hi getting this error when I try to install: Unexp...
# announcements
m
Hi getting this error when I try to install: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
f
what are you installing?
m
growthbook?
f
so you’re using the docker container?
m
yes
Copy code
yarn run v1.22.19
$ wsrun -p '*-end' -m start
back-end
 | $ node dist/server.js

d
 | $ next start
 | ready - started server on 0.0.0.0:3000, url: <http://localhost:3000>
back-end
 | /usr/local/src/app/packages/back-end/dist/util/secrets.js:49
 |     throw new Error("Cannot use JWT_SECRET=dev in production. Please set to a long random string.");
 |     ^
 | 
 | Error: Cannot use JWT_SECRET=dev in production. Please set to a long random string.
 |     at Object.<anonymous> (/usr/local/src/app/packages/back-end/dist/util/secrets.js:49:11)
 |     at Module._compile (node:internal/modules/cjs/loader:1191:14)
 |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
 |     at Module.load (node:internal/modules/cjs/loader:1069:32)
 |     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
 |     at Module.require (node:internal/modules/cjs/loader:1093:19)
 |     at require (node:internal/modules/cjs/helpers:108:18)
 |     at Object.<anonymous> (/usr/local/src/app/packages/back-end/dist/init/config.js:11:19)
 |     at Module._compile (node:internal/modules/cjs/loader:1191:14)
 |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
 | error Command failed with exit code 1.
 | info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
 | `yarn start` failed with exit code 1
error of the container
f
Error: Cannot use JWT_SECRET=dev in production. Please set to a long random string.
there is part of your problem
m
Backend is now available but it still tells me Failed to fetch
f
did you change the JWT_SECRET and the ENCRYPTION_KEY?
150 Views