Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

INVALID_ARGUMENT: Queue.queue_type must be set #95

@pyitphyoaung

Description

@pyitphyoaung

Environment details

  • OS: macOS Mojave (10.14)
  • Node.js version: 8.12.0
  • npm version:
  • @google-cloud/tasks version: 0.2.2

Steps to reproduce

The following code which is based on sample from createQueue produces an "INVALID_ARGUMENT: Queue.queue_type must be set." error:

const tasks = require('@google-cloud/tasks');

var client = new tasks.v2beta3.CloudTasksClient({
  // optional auth parameters.
});

var request = {
  parent: client.locationPath('[project]', '[location]'),
  queue: {
        name: `projects/[project]/locations/[location]/queues/[queue-id]`,
        rateLimits: { maxDispatchesPerSecond: 500 },
        retryConfig: { maxAttempts: 1 }
  },
};

client.createQueue(request)
  .then(responses => {
    var response = responses[0];
    // doThingsWith(response)
  })
  .catch(err => {
    console.error(err);
  });

Metadata

Metadata

Labels

api: cloudtasksIssues related to the googleapis/nodejs-tasks API.type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions