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

WebRisk submit_uri throws MethodNotImplemented #13042

Open
1 task done
itsnotapt opened this issue Aug 30, 2024 · 1 comment
Open
1 task done

WebRisk submit_uri throws MethodNotImplemented #13042

itsnotapt opened this issue Aug 30, 2024 · 1 comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@itsnotapt
Copy link

Determine this is the right repository

  • I determined this is the correct repository in which to report this bug.

Summary of the issue

Context
Using the sample code for submit_uri at: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_submit_uri_sync.py

Expected Behavior:
Return a OK response code.

Actual Behavior:
Returns a MethodNotImplemented: 501 Method not found.

API client name and version

google-cloud-webrisk 1.14.5

Reproduction steps: code

from google.cloud import webrisk_v1
client = webrisk_v1.WebRiskServiceClient(credentials=credentials)

# Initialize request argument(s)
submission = webrisk_v1.Submission()
submission.uri = "<uri>"

request = webrisk_v1.SubmitUriRequest(
    parent=f"projects/{project_number}",
    submission=submission,
)

# Make the request
operation = client.submit_uri(request=request)

print("Waiting for operation to complete...")

response = operation.result()

# Handle the response
print(response)

Reproduction steps: supporting files

None

Reproduction steps: actual results

MethodNotImplemented: 501 Method not found.
status = StatusCode.UNIMPLEMENTED
	details = "Method not found."
	debug_error_string = "UNKNOWN:Error received from peer ipv4:142.251.215.234:443 {created_time:"2024-08-30T10:05:29.539129-07:00", grpc_status:12, grpc_message:"Method not found."}

Reproduction steps: expected results

OK returned

OS & version + platform

MacOS 14.6

Python environment

3.12.4

Python dependencies

Package                  Version
------------------------ ---------
cachetools               5.5.0
certifi                  2024.8.30
charset-normalizer       3.3.2
google-api-core          2.19.2
google-auth              2.34.0
google-cloud-webrisk     1.14.5
googleapis-common-protos 1.65.0
grpcio                   1.66.1
grpcio-status            1.66.1
idna                     3.8
pip                      24.2
proto-plus               1.24.0
protobuf                 5.28.0
pyasn1                   0.6.0
pyasn1_modules           0.4.0
requests                 2.32.3
rsa                      4.9
urllib3                  2.2.2
@itsnotapt itsnotapt added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Aug 30, 2024
@itsnotapt
Copy link
Author

Looks like this endpoint is still in Early Access?

Only allowlisted projects can use this method during Early Access. Please reach out to Sales or your customer engineer to obtain access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. 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

1 participant