Skip to content
New issue

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

JobsClient.checkRunJobProgress not implemented, or supported, or enabled. #1635

Open
acontreras89 opened this issue Jul 18, 2024 · 1 comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@acontreras89
Copy link

I am not sure whether this issue belongs to the google-gax library (this repo) or to the @google-cloud/run library. However, creating an issue in the latter is pretty intimidating because of the many things they request (e.g. a link to a public Github Repository or gist with a minimal reproduction).

Calling JobsClient.checkRunJobProgress returns the following error:

12 UNIMPLEMENTED: Operation is not implemented, or supported, or enabled.

According to this troubleshooting guide, this happens when an incorrect region is provided. I am certain this is not the case. Moreover, performing the underlying (get operation) request via cURL works just fine:

curl -X GET \
      -H "Authorization: Bearer $(gcloud auth print-access-token)" \
      "https://run.googleapis.com/v2/projects/${PROJECT}/locations/${LOCATION}/operations/${OPERATION_ID}"

Environment details

  • OS: macOS Sonoma 14.4.1
  • Node.js version: v18.20.0
  • npm version: 10.5.0
  • gax-nodejs version: 4.3.2

Steps to reproduce

  1. Instantiate the JobsClient
  2. Run a job
  3. Check the progress for the operation returned by the run job method
import { JobsClient } from '@google-cloud/run'

const client = new JobsClient()

const [operation] = await client.runJob({ name: `projects/${PROJECT}/locations/${JOB_LOCATION}/jobs/${JOB}` })

await client.checkRunJobProgress(operation.name) // this will throw 💥 
@acontreras89 acontreras89 added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jul 18, 2024
@ibovyrin
Copy link

Just faced the same issue.

It seems that checkRunJobProgress expects you to create a client with passing regional apiEndpoint:

const jobsClient = new JobsClient({apiEndpoint: "us-central1-run.googleapis.com"});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants