Question

Invalid API Response: Results must be an array error

  • 15 July 2021
  • 1 reply
  • 24 views

I’ve made a Trigger and I’m not using code so this is a bit perplexing. 

My output is not defined  So when I run the test I’m getting this error 

Invalid API Response: - Results must be an array, got: object, ({"items":[{"username":"xxxxxxxx.xxxxxxxx@xxxxxxxx.xxxxxxxx.m) - Got a result missing the "id" property ([{"username":"xxxxxxxx.xxxxxxxx@xxxxxxxx.xxxxxxxx.com","first_name":"Jxxxxxx","last_name":"Axxxxxxx","email":"xxxxxxxx.xxxxxxxx@xxxxxxxx.xxxxxxxx.com","automatic_update":true,"excluded_from_user_activity":false,"login_blocked":false,"roles":{"primary_r) What happened (You are seeing this because you are an admin): Executing triggers.query_users.operation.perform with bundle Invalid API Response: - Results must be an array, got: object, ({"items":[{"username":"xxxxxxxx.xxxxxxxx@xxxxxxxx.xxxxxxxx.m) - Got a result missing the "id" property ([{"username":"xxxxxxxx.xxxxxxxx@xxxxxxxx.xxxxxxxx.com","first_name":"Jxxxxxx","last_name":"Axxxxxxx","email":"xxxxxxxx.xxxxxxxx@xxxxxxxx.xxxxxxxx.com","automatic_update":true,"excluded_from_user_activity":false,"login_blocked":false,"roles":{"primary_r) Console logs: Stack trace: CheckError: Invalid API Response: - Results must be an array, got: object, ({"items":[{"username":"xxxxxxxx.xxxxxxxx@xxxxxxxx.xxxxxxxx.m) - Got a result missing the "id" property ([{"username":"xxxxxxxx.xxxxxxxx@xxxxxxxx.xxxxxxxx.com","first_name":"Jxxxxxx","last_name":"Axxxxxxx","email":"xxxxxxxx.xxxxxxxx@xxxxxxxx.xxxxxxxx.com","automatic_update":true,"excluded_from_user_activity":false,"login_blocked":false,"roles":{"primary_r) at checkOutput (/var/task/node_modules/zapier-platform-core/src/app-middlewares/after/checks.js:42:15) at Object.collector.then.newOutput (/var/task/node_modules/zapier-platform-core/src/middleware.js:80:37) at bound (domain.js:402:14) at Object.runBound (domain.js:415:12) at Object.tryCatcher (/var/task/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/var/task/node_modules/bluebird/js/release/promise.js:517:31) at Promise._settlePromise (/var/task/node_modules/bluebird/js/release/promise.js:574:18) at Promise._settlePromiseCtx (/var/task/node_modules/bluebird/js/release/promise.js:611:10) at _drainQueueStep (/var/task/node_modules/bluebird/js/release/async.js:142:12) at _drainQueue (/var/task/node_modules/bluebird/js/release/async.js:131:9) at Async._drainQueues (/var/task/node_modules/bluebird/js/release/async.js:147:5) at Immediate.Async.drainQueues [as _onImmediate] (/var/task/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:705:18) at tryOnImmediate (timers.js:676:5)
 

This post has been edited by a moderator to remove sensitive information. Please remember to obfuscate any personally identifiable information prior to posting as this is a public forum. 

 

I’m not using code mode. So all the articles i search are in regards to that. 


Reply