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

Issue in creating intent #62

Open
Akashutreja opened this issue Jul 9, 2018 · 1 comment
Open

Issue in creating intent #62

Akashutreja opened this issue Jul 9, 2018 · 1 comment

Comments

@Akashutreja
Copy link

I am beginner to dialogflow and try to create an intent but having some issue.can anyone please tell me how to solve the following error.

Traceback (most recent call last):
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\google\api_core\grpc_helpers.py", line 54, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\grpc\_channel.py", line 500, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\grpc\_channel.py", line 434, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, Context ID must not be empty.)>

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

Traceback (most recent call last):
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\django-2.0.5-py3.6.egg\django\core\handlers\exception.py", line 35, in inner
    response = get_response(request)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\django-2.0.5-py3.6.egg\django\core\handlers\base.py", line 128, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\django-2.0.5-py3.6.egg\django\core\handlers\base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\django-2.0.5-py3.6.egg\django\views\decorators\csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\django-2.0.5-py3.6.egg\django\views\generic\base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\rest_framework\views.py", line 483, in dispatch
    response = self.handle_exception(exc)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\rest_framework\views.py", line 443, in handle_exception
    self.raise_uncaught_exception(exc)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\rest_framework\views.py", line 480, in dispatch
    response = handler(request, *args, **kwargs)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\rest_framework\decorators.py", line 53, in handler
    return func(*args, **kwargs)
  File "C:\Users\Aakash\Documents\projects\umwelt-project\umwelt-api\api\admin_api\admin_views.py", line 127, in intervention
    message_texts,second_response,input_context,output_context,followup_parent_intent,payload)
  File "C:\Users\Aakash\Documents\projects\umwelt-project\umwelt-api\api\admin_api\intent_management.py", line 159, in create_intent
    response = intents_client.create_intent(parent, intent)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\dialogflow_v2\gapic\intents_client.py", line 408, in create_intent
    request, retry=retry, timeout=timeout, metadata=metadata)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\google\api_core\gapic_v1\method.py", line 139, in __call__
    return wrapped_func(*args, **kwargs)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\google\api_core\retry.py", line 260, in retry_wrapped_func
    on_error=on_error,
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\google\api_core\retry.py", line 177, in retry_target
    return target()
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\google\api_core\timeout.py", line 206, in func_with_timeout
    return func(*args, **kwargs)
  File "C:\Users\Aakash\AppData\Local\Programs\Python\Python36\lib\site-packages\google\api_core\grpc_helpers.py", line 56, in error_remapped_callable
    six.raise_from(exceptions.from_grpc_error(exc), exc)
  File "<string>", line 3, in raise_from
google.api_core.exceptions.InvalidArgument: 400 Context ID must not be empty

Thanks

@allentv
Copy link

allentv commented Dec 23, 2018

The error says Context ID must not be empty. Could you share the exact steps you followed with the input data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants