Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
Error: 3 INVALID_ARGUMENT: Invalid resource field value in the request

I am following a List Queues sample to lists all the queues. But, I get below error:

Error: 3 INVALID_ARGUMENT: Invalid resource field value in the request.
    at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:190:52)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
    at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
    at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:188:78
    at processTicksAndRejections (node:internal/process/task_queues:78:11)

Some code snippet:

const parent = client.locationPath(project, location);
const [queues] = await client.listQueues({parent});

if (queues.length > 0) {
  console.log('Queues:');
  queues.forEach(queue => {
    console.log(` ${queue.name}`);
  });
} else {
  console.log('No queues found!');
}

I am not very sure whether the error is derived from this line:

const [queues] = await client.listQueues({parent});

Appreciate if someone can advise. Thank you in advance!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I just change

const [queues] = await client.listQueues({parent});

to

const [queues] = await client.listQueues({parent: parent});

and the problem is solved.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!