Skip to main content
Best answer

Error: No deploy key found. Make sure you set the `ZAPIER_DEPLOY_KEY` environment variable to write tests that rely on the RPC API (i.e. z.stashFile)


craibuc
Forum|alt.badge.img

When I ran a Jest test for a action that uses z.stashFile, I got an error message:

Error: No deploy key found. Make sure you set the `ZAPIER_DEPLOY_KEY` environment variable to write tests that rely on the RPC API (i.e. z.stashFile)

 

Where do I find or create this key?

Once I find this value, I can add it to the .env file, correct?

Best answer by connorzBest answer by connorz

Hey @craibuc,

You can create a Deploy Key by following these steps:

  1. Visit https://developer.zapier.com
  2. Sign into your account
  3. Click your profile in the upper-right corner
  4. Click “Settings”
  5. Click “Deploy Keys” on the left
  6. Click to create a new key

Then, as you mentioned, you should be clear to add that key as an environment variable.

Hope this helps!

View original
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.

2 replies

Forum|alt.badge.img+7
  • Zapier Staff
  • 91 replies
  • Answer
  • August 2, 2023

Hey @craibuc,

You can create a Deploy Key by following these steps:

  1. Visit https://developer.zapier.com
  2. Sign into your account
  3. Click your profile in the upper-right corner
  4. Click “Settings”
  5. Click “Deploy Keys” on the left
  6. Click to create a new key

Then, as you mentioned, you should be clear to add that key as an environment variable.

Hope this helps!


craibuc
Forum|alt.badge.img
  • Author
  • Beginner
  • 8 replies
  • August 2, 2023

Found it.  Thank you.