freezing-finland-8863106/14/2022, 8:15 PM
API endpoint fail, and I’m seeing this in the container logs:
Per the docs I set
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"}
, and set a
. 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?
that's causing that error. The data source credentials were encrypted with one key and now it can't be decrypted
freezing-finland-8863106/14/2022, 8:18 PM
of its own if I don’t explicitly set one?
freezing-finland-8863106/14/2022, 8:22 PM
for now but saw:
I’m happy to delete the experiment definitions from Mongo and start over if that’s easiest?
throw new Error("Cannot use ENCRYPTION_KEY=dev in production. Please set to a long random string.");
freezing-finland-8863106/14/2022, 9:14 PM