Skip to main content
Question

ENOENT: no such file or directory error

  • March 14, 2023
  • 1 reply
  • 12 views

KritiS

I am using Zapier platform cli to write a customised 'Create'. 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);

Can anyone help me please?

I tried to provide the json key directly in the keyFilename

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.

1 reply

shalgrim
Forum|alt.badge.img+8
  • Zapier Staff
  • 406 replies
  • March 14, 2023

Hi there @KritiS ,

Are you using the NodeJS Big Query library? You might try checking with that community. I don’t think using a file is going to work on the Zapier platform, so you might want to look into other ways of logging in, possibly by setting environment variables? I’m not sure, I don’t have any experience with that library.