Skip to content

Issue in creating intent #62

@Akashutreja

Description

@Akashutreja

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions