Skip to main content

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?