Cloud Scheduler is failing to call the API intermittently with - INVALID_ARGUMENT

102 views Asked by At

There is already a question - Cloud Scheduler suddenly giving "INVALID_ARGUMENT" error

but this is different than my issue, as I think the above one is more of API issue.

cloudscheduler's profile photo cloudscheduler 11:26 AM (5 minutes ago) to cloudscheduler Hi,

I have a cloud scheduler which is calling a GET API. The API is deployed on Cloud Run Service. I have three schedulers which run at 3 AM, 11 AM and 12 Noon. Usually, schedulers 11 and 12 are failing with following error .

@type: "type.googleapis.com/google.cloud.scheduler.logging.AttemptFinished" jobName: "{jobName}" status: "INVALID_ARGUMENT" targetType: "HTTP" url: "{Working-URL}"

We have a retrigger logic, so when it fails it will try one more time to execute the API. and next time it's always successful.

May I know the reason, why it is failing?

--------------Logs--------------------

{
  "insertId": "ftx03cfhpuodj",
  "jsonPayload": {
    "status": "INVALID_ARGUMENT",
    "jobName": "projects/{projectName}/locations/{location}/jobs/{name}",
    "url": "{working_url}",
    "@type": "type.googleapis.com/google.cloud.scheduler.logging.AttemptFinished",
    "targetType": "HTTP"
  },
  "httpRequest": {
    "status": 400
  },
  "resource": {
    "type": "cloud_scheduler_job",
    "labels": {
      "job_id": "{name}",
      "location": "europe-west1",
      "project_id": "{id}"
    }
  },
  "timestamp": "2023-10-19T09:01:20.669503061Z",
  "severity": "ERROR",
  "logName": "projects/{id}/logs/cloudscheduler.googleapis.com%2Fexecutions",
  "receiveTimestamp": "2023-10-19T09:01:20.669503061Z"
}
0

There are 0 answers