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.

Failed Precondition - Intent with ID not found among intents in environment  #171

@Archetype90

Description

@Archetype90

Environment details

  1. Windows 10
  2. Python 3.6.6
  3. dialogflow version: 0.7.2`

Steps to reproduce

It is not clear to me what caused this issue to pop up. Existing code that has not changed gets this error intermittently starting about three days ago. I am roughly using the boilerplate stream audio and print the intermediate transcript code.

After I stop speaking, but before an intent is returned, I get the following exception:

2019-12-27 09:56:46 - INFO - Intermediate transcript: "turn the display".
2019-12-27 09:56:46 - ERROR - 400 Intent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx' not found among intents in environment '' for agent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx'.
com.google.apps.framework.request.StatusException: <eye3 title='FAILED_PRECONDITION'/> generic::FAILED_PRECONDITION: Intent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx' not found among intents in environment '' for agent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx'.
2019-12-27 09:56:46 - ERROR - Failed precondition - what does this mean?
====================
2019-12-27 09:56:46 - INFO - Query text:
2019-12-27 09:56:46 - INFO - Detected intent:  (confidence: 0.0)
2019-12-27 09:56:46 - INFO - Fulfillment text:

The error is very explicit, but the error is not consistent and the intents do exist in my project.

Stack trace

2019-12-27 09:52:13 - INFO - Intermediate transcript: "turn the display".
Exception in thread Thread-15:
Traceback (most recent call last):
  File "C:\Users\wbaker\AppData\Local\Programs\Python\Python36\lib\site-packages\google\api_core\grpc_helpers.py", line 79, in next
    return six.next(self._wrapped)
  File "C:\Users\wbaker\AppData\Local\Programs\Python\Python36\lib\site-packages\grpc\_channel.py", line 388, in __next__
    return self._next()
  File "C:\Users\wbaker\AppData\Local\Programs\Python\Python36\lib\site-packages\grpc\_channel.py", line 382, in _next
    raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
        status = StatusCode.FAILED_PRECONDITION
        details = "Intent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx' not found among intents in environment '' for agent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx'.
com.google.apps.framework.request.StatusException: <eye3 title='FAILED_PRECONDITION'/> generic::FAILED_PRECONDITION: Intent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx' not found among intents in environment '' for agent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx'."
        debug_error_string = "{"created":"@1577461933.949000000","description":"Error received from peer ipv4:172.217.14.170:443","file":"src/core/lib/surface/call.cc","file_line":1055,"grpc_message":"Intent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx' not found among intents in environment '' for agent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx'.\ncom.google.apps.framework.request.StatusException: <eye3 title='FAILED_PRECONDITION'/> generic::FAILED_PRECONDITION: Intent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx' not found among intents in environment '' for agent with id 'xxxxxxxxxxxxxxxxxxxxxxxxx'.","grpc_status":9}"
>

I suspect there is a decent chance that I am doing something wrong here, but the fact that I had not seen this error for 1-2 months while using the same code has me concerned that this is some sort of bug.

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: dialogflowIssues related to the googleapis/python-dialogflow API.needs more infoThis issue needs more information from the customer to proceed.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions