501 GRPC target method can't be resolved -- Google Bard API - Django

514 views
Skip to first unread message

Brendon N

unread,
Aug 26, 2024, 4:37:41 AM8/26/24
to Google Ads API and AdWords API Forum
Hello,

 I installed the google Bard/ Gemini in my app but suddenly its not generating content as before. i checked the error and it says:  501 GRPC target method can't be resolved but i dont know why. Please help. 

additional error details: 
Traceback (most recent call last):
  File "C:\Users\\PycharmProjects\resumebuilderproject\venv\lib\site-packages\google\api_core\grpc_helpers.py", line 79, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "C:\Users\\PycharmProjects\resumebuilderproject\venv\lib\site-packages\grpc\_channel.py", line 1160, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "C:\Users\PycharmProjects\resumebuilderproject\venv\lib\site-packages\grpc\_channel.py", line 1003, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNIMPLEMENTED
        details = "GRPC target method can't be resolved."
        debug_error_string = "UNKNOWN:Error received from peer ipv4:142.251.40.170:443 {grpc_message:"GRPC target method can\'t be resolved.", grpc_status:12, created_time:"2024-08-25T17:19:38.8069426+00:00"}"
>

The above exception was the direct cause of the following exception:

 "C:\Users\PycharmProjects\resumebuilderproject\resumebuilder\apps\sciences\views.py", line 583, in bard_response
    response = get_response(request)
  File "C:\Users\PycharmProjects\resumebuilderproject\resumebuilder\apps\sciences\bard.py", line 32, in get_response
    response = paml.chat(messages=prompt)
  File "C:\Users\PycharmProjects\resumebuilderproject\venv\lib\site-packages\google\generativeai\discuss.py", line 401, in chat
    return _generate_response(client=client, request=request)

  File "C:\Users\PycharmProjects\resumebuilderproject\venv\lib\site-packages\google\api_core\grpc_helpers.py", line 81, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.MethodNotImplemented: 501 GRPC target method can't be resolved.

Google Ads API Forum Advisor

unread,
Aug 26, 2024, 9:41:42 AM8/26/24
to bren...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Based on the information provided, I understand that you are using Google Bard API and encountering some issues. Kindly note that we can only handle the issues / concerns related to the Google Ads API. As you are using Google Bard API, I would recommend you to reach out to the Google Bard Product support team for further assistance as they are better equipped to address your concerns. 
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vFOGm:ref" (ADR-00264859)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages