-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Improve gRPC error message when request is invalid #12764
Comments
Operation is not implemented, or supported, or enabled
error when calling list_jobs with run_v2 libraryOperation is not implemented, or supported, or enabled
error when calling list_jobs
with run_v2 library
Hi @ithomaslin , This appears to be an issue with the API. Thanks for reporting the issue in the API specific issue tracker (https://issuetracker.google.com/issues/343845155). We'll keep this issue open and update it as more information is available. |
I am also getting this error when trying to use runjob, I followed a link from an issue that was last updated in Novemeber with the same problem so I am not sure if this is truly an issue with the API or rather it's our code but the python client (which is still version 0.X to be fair) is giving the wrong error return. Here's the link to the issue I mentioned, last two comments relate to Cloud Run Jobs googleapis/python-datacatalog#33 I also added a comment to the issue @parthea linked as well |
I was able to re-create the error using the following code
I switched from
Error when using
Essentially, the value for the See the updated code below which worked
google-cloud-python/packages/google-cloud-run/google/cloud/run_v2/types/job.py Lines 142 to 146 in d2a2825
We'll keep this issue open as the error message from gRPC should be improved to the level that we see when using |
I will also switch to the REST transport and see if I am running into something similar with run job, fwiw this is my code
Secondarily, part of the issue might be docs related, this is the doc for RunJobRequest, the text description of |
Thanks for the update @ajoy39. Please let me know if you're still unable to resolve the issue after trying |
sigh sorry for wasting your time y'all, my problem ended up being a simple typo. tldr: Docs are fine, gRPC Transport ate the error message like it did for OP, but underlying issue was a typo |
@ajoy39 Thanks for the update. I'm glad that you found the issue! I'll keep this issue open as the error message for gRPC could be improved. |
Operation is not implemented, or supported, or enabled
error when calling list_jobs
with run_v2 library
Hi folks,
With the above code, which is following the sample provided in the official documentation. However, I got this error message:
The text was updated successfully, but these errors were encountered: