Skip to main content

using NodeJS Big Query library in Zapier


KritiS

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?

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.