Skip to main content
Question

Failed testing new trigger because GET request to perform list doesn't include API key

  • September 3, 2024
  • 1 reply
  • 20 views

I’m trying to test a new trigger, but the GET request from Zapier doesn’t seem to include the API key. 

It’s including the key just fine when I test authentication, but when I test my trigger i get the long error indicating no api key sent:

Unable to pull payments

Please reload the page. If the issue persists, troubleshoot error or contact Support.

Error code: Error while retrieving: The app returned "Invalid API Key". What happened (You are seeing this because you are an admin): Stack trace: ResponseError: {"status":405,"headers":{"content-type":"text/html; charset=UTF-8","retry-after":null},"content":"Invalid API Key","request":{"url":"https://api.donationpay.org/v1.0/zapier/new_payment/performlist.php"}} at _throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/prepare-response.js:13:11) at outResp.throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/prepare-response.js:68:5) at throwForStatusMiddleware (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/throw-for-status.js:5:14) at Object.<anonymous> (/var/task/node_modules/zapier-platform-core/src/middleware.js:80:37) From previous event: at /var/task/node_modules/zapier-platform-core/src/middleware.js:77:26 at Array.reduce (<anonymous>) at afterMiddleware (/var/task/node_modules/zapier-platform-core/src/middleware.js:76:21) at Object.<anonymous> (/var/task/node_modules/zapier-platform-core/src/middleware.js:94:18) From previous event: at Object.<anonymous> (/var/task/node_modules/zapier-platform-core/src/middleware.js:92:10) From previous event: at /var/task/node_modules/zapier-platform-core/src/middleware.js:89:45 at /var/task/node_modules/zapier-platform-core/src/tools/create-lambda-handler.js:212:18 at bound (node:domain:433:15) at runBound (node:domain:444:12) at process.processImmediate (node:internal/timers:476:21) at process.topLevelDomainCallback (node:domain:161:15) at process.callbackTrampoline (node:internal/async_hooks:126:24) From previous event: at Domain.<anonymous> (/var/task/node_modules/zapier-platform-core/src/tools/create-lambda-handler.js:196:10) at Domain.run (node:domain:389:15) at Runtime.handler (/var/task/node_modules/zapier-platform-core/src/tools/create-lambda-handler.js:192:19) at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1173:29)

 

On my end, I’m logging the request headers, and they don’t include an api key:
 

Request headers: {"Host":"api.donationpay.org","Connection":"close","Accept-Encoding":"gzip,deflate","User-Agent":"Zapier","Accept":"application\\/json"}

 

Not sure what I’m doing wrong here, any guidance much appreciated!

Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+3
  • Zapier Staff
  • 43 replies
  • September 13, 2024

Hi @noglassso,

Have you checked the API configuration of the trigger to ensure that the API is being added to the request header? The API Key should be available in the bundle.authData object.

If yes, but the API key is still not being sent in the request, kindly reach out to our Developer Support team via https://developer.zapier.com/contact so that they can take a look and see what could be wrong.

All the best,