I’ve just hosted Growthbook on AWS ECS. Previously I had created a few metrics / experiments when I ...
d

Dylan Sather

almost 3 years ago
I’ve just hosted Growthbook on AWS ECS. Previously I had created a few metrics / experiments when I was running the container locally, and had the local container pointing to a remote Mongo DB. When I moved to ECS, I’m noticing requests to the
/organization/definitions
API endpoint fail, and I’m seeing this in the container logs:
Unexpected end of JSON input\n at JSON.parse (<anonymous>)\n at Object.decryptDataSourceParams (/usr/local/src/app/packages/back-end/dist/services/datasource.js:29:17)\n at Snowflake.setParams (/usr/local/src/app/packages/back-end/dist/integrations/Snowflake.js:11:36)\n at new SqlIntegration (/usr/local/src/app/packages/back-end/dist/integrations/SqlIntegration.js:17:14)\n at new Snowflake (/usr/local/src/app/packages/back-end/dist/integrations/Snowflake.js:9:1)\n at Object.getSourceIntegrationObject (/usr/local/src/app/packages/back-end/dist/services/datasource.js:69:15)\n at /usr/local/src/app/packages/back-end/dist/controllers/organizations.js:128:50\n at Array.map (<anonymous>)\n at /usr/local/src/app/packages/back-end/dist/controllers/organizations.js:127:38\n at Generator.next (<anonymous>)\n at fulfilled (/usr/local/src/app/packages/back-end/dist/controllers/organizations.js:5:58)","type":"Error","msg":"Unexpected end of JSON input"}
Per the docs I set
NODE_ENV
to
production
, and set a
JWT_SECRET
and
ENCRYPTION_KEY
. Could the fact that I saved the experiments without an encryption key when developing locally, and am trying to read those experiments in prod, be part of the issue?