using NodeJS Big Query library in Zapier

  • 19 March 2023
  • 0 replies
  • 18 views

I am using NodeJs big query library in Zapier cli. When I try to provide the path for big query service account key, I get the following error - ENOENT: no such file or directory, open '/var/task/creates/key.json'

const options = {
keyFilename: 'creates/key.json',
projectId: 'test',
};

const bigqueryClient = new BigQuery(options);

I tried to provide the json key directly in the keyFilename. Is there some other way to do this?
Can I do this by setting environment variables?


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.