We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { CloudTasksClient } from '@google-cloud/tasks'; import { credentials } from '@grpc/grpc-js'; const client = new CloudTasksClient({ port: 8123, servicePath: 'localhost', sslCreds: credentials.createInsecure(), }); const parent = 'projects/my-sandbox/locations/us-central1'; const queueName = `${parent}/queues/test`; client.createQueue({ parent, queue: { name: queueName } }); // <-------- Missing await // Create a normal http task that should succeed await client.createTask({ parent: queueName, task: { httpRequest: { httpMethod: 'GET', url: 'https://www.google.com' } }, }); // Create a normal http task that will throw 405s and will get retried await client.createTask({ parent: queueName, task: { httpRequest: { httpMethod: 'POST', url: 'https://www.google.com' } }, });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: