diff --git a/packages/nocodb/src/plugins/gcs/Gcs.ts b/packages/nocodb/src/plugins/gcs/Gcs.ts index 3c97f1c5a5..6d313fca1f 100644 --- a/packages/nocodb/src/plugins/gcs/Gcs.ts +++ b/packages/nocodb/src/plugins/gcs/Gcs.ts @@ -68,7 +68,9 @@ export default class Gcs implements IStorageAdapterV2 { // this.bucketName = process.env.NC_GCS_BUCKET; options.credentials = { client_email: this.input.client_email, - private_key: this.input.private_key + // replace \n with real line breaks to avoid + // error:0909006C:PEM routines:get_name:no start line + private_key: this.input.private_key.replace(/\\n/gm, '\n') }; this.bucketName = this.input.bucket;