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)

  • July 27, 2023
  • 2 replies
  • 243 views

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 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!

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
  • 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
  • August 2, 2023

Found it.  Thank you.