Browse Source

fix: error:0909006C:PEM routines:get_name:no start line

feat/0523-export-schema
Wing-Kam Wong 3 years ago committed by Raju Udava
parent
commit
58066e299c
  1. 4
      packages/nocodb/src/plugins/gcs/Gcs.ts

4
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;

Loading…
Cancel
Save