googleapis / nodejs-tasks

This repository is deprecated. All of its content and history has been moved to googleapis/google-cloud-node.
https://cloud.google.com/tasks/docs/
Apache License 2.0
142 stars 45 forks source link

Thrown Invalid Argument while populating 'inSeconds' param to createHttpTask.js #654

Closed pattishin closed 2 years ago

pattishin commented 2 years ago

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

1) Is this a client library issue or a product issue? This is the client library for . We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the [ Support page]() to reach the most relevant engineers.

2) Did someone already solve this?

3) Do you have a support contract? Please create an issue in the support console to ensure a timely response.

If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details

Steps to reproduce

  1. Clone nodejs-tasks locally
  2. cd nodejs-tasks/samples
  3. Execute node createHttpTask.js 'project-id' 'my-queue-2' 'us-central1' 'https://example.com/task_handler' 'hello' 180
  4. You should see the error 3 INVALID_ARGUMENT: Request contains an invalid argument. popping up and the printed out json task object in your console has a string passed to seconds property instead of a float. (ex: { scheduleTime: { seconds: '11663041559.943' } }) }
Screen Shot 2022-09-12 at 9 25 00 PM

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!