Browse Source

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

pull/2216/head
Wing-Kam Wong 2 years ago
parent
commit
96dd481b02
  1. 4
      packages/nocodb/src/plugins/gcs/Gcs.ts

4
packages/nocodb/src/plugins/gcs/Gcs.ts

@ -67,7 +67,9 @@ export default class Gcs implements IStorageAdapter {
// 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