Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
This will create a public issue which anybody can view and comment on.
Please provide as much information as possible. At least, this should include a description of your issue and steps to reproduce the problem. If possible please provide a summary of what steps or workarounds you have already tried, and any docs or articles you found (un)helpful.
Problem you have encountered:
I'm using the cloud task HTTP API to create a task with a specified name. If that task has existed too recently, there is an (expected) error stating that another task with that name is too recent.
HOWEVER
The audit log generated when a task has existed too recently misleadingly says that the error is
NOT_FOUND
, instead ofALREADY_EXISTS
as is returned by the http endpoint.What you expected to happen:
The error code in the audit logs should match the error code that's returned from the HTTP call. It should be
ALREADY_EXISTS
, notNOT_FOUND
.Steps to reproduce:
parent: projects/my-project/locations/us-central1/queues/my-queue request body:
jsonPayload.taskCreationLog.status
isNOT_FOUND
. Expect: it should beALREADY_EXISTS
since that is the error message returned by the http endpoint.We spent a long time trying to determine if the queue had gone missing or something else was misconfigured when we saw this error status in our audit logs.
Other information (workarounds you have tried, documentation consulted, etc):