Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

No DesignTimeAgent found for project python-docs-samples-* #439

@parthea

Description

@parthea

We're hitting quota exceeded errors in samples testing. For example see build log here which has the following error.

429 Quota exceeded for quota metric 'Dialogflow Trial Edition text query operations' and limit 'Dialogflow Trial Edition text query operations per minute' of service 'dialogflow.googleapis.com'

I've opened PR #438 to switch the samples testing to use multiple projects however, I'm getting an the following error with samples test test_detect_intent_texts_with_location:

>           raise _InactiveRpcError(state)
E           grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E           	status = StatusCode.NOT_FOUND
E           	details = "com.google.apps.framework.request.NotFoundException: No DesignTimeAgent found for project 'python-docs-samples-tests-py36'."
E           	debug_error_string = "{"created":"@1636716471.750347840","description":"Error received from peer ipv4:74.125.142.95:443","file":"src/core/lib/surface/call.cc","file_line":1069,"grpc_message":"com.google.apps.framework.request.NotFoundException: No DesignTimeAgent found for project 'python-docs-samples-tests-py36'.","grpc_status":5}"
E           >

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:849: _InactiveRpcError

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

capsys = <_pytest.capture.CaptureFixture object at 0x7f53eb7af048>

    def test_detect_intent_texts_with_location(capsys):
        detect_intent_texts_with_location(
>           PROJECT_ID, LOCATION_ID, SESSION_ID, TEXTS, "en-GB"
        )

detect_intent_texts_with_location_test.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
detect_intent_texts_with_location.py:55: in detect_intent_texts_with_location
    request={"session": session, "query_input": query_input}
../../google/cloud/dialogflow_v2/services/sessions/client.py:525: in detect_intent
    response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py:154: in __call__
    return wrapped_func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:288: in retry_wrapped_func
    on_error=on_error,
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:190: in retry_target
    return target()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (session: "projects/python-docs-samples-tests-py36/locations/europe-west2/agent/sessions/test_15a7f7c7-a764-4604-8e1a-7fabaf8427af"
query_input {
  text {
    text: "hello"
    language_code: "en-GB"
  }
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'session=projects/python-docs-samples-tests-py36/locations/europe-west2/agent/...t_15a7f7c7-a764-4604-8e1a-7fabaf8427af'), ('x-goog-api-client', 'gl-python/3.6.15 grpc/1.41.1 gax/2.2.2 gapic/2.9.1')]}

    @functools.wraps(callable_)
    def error_remapped_callable(*args, **kwargs):
        try:
            return callable_(*args, **kwargs)
        except grpc.RpcError as exc:
>           raise exceptions.from_grpc_error(exc) from exc
E           google.api_core.exceptions.NotFound: 404 com.google.apps.framework.request.NotFoundException: No DesignTimeAgent found for project 'python-docs-samples-test

All other samples tests pass. It's just this one test that is failing. See build log here.

Metadata

Metadata

Assignees

Labels

api: dialogflowIssues related to the googleapis/python-dialogflow API.samplesIssues that are directly related to samples.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions