freezing-finland-88631
06/14/2022, 8:15 PM/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?future-teacher-7046
ENCRYPTION_KEY
that's causing that error. The data source credentials were encrypted with one key and now it can't be decryptedfreezing-finland-88631
06/14/2022, 8:18 PMENCRYPTION_KEY
of its own if I don’t explicitly set one?future-teacher-7046
dev
by defaultfreezing-finland-88631
06/14/2022, 8:22 PMdev
for now but saw:
throw new Error("Cannot use ENCRYPTION_KEY=dev in production. Please set to a long random string.");
I’m happy to delete the experiment definitions from Mongo and start over if that’s easiest?future-teacher-7046
freezing-finland-88631
06/14/2022, 9:14 PMconfig.yml