【问题标题】:Google Assistant sdk GRPC authentication error : io.grpc.StatusRuntimeException: UNAUTHENTICATED:Google Assistant sdk GRPC 身份验证错误:io.grpc.StatusRuntimeException: UNAUTHENTICATED:
【发布时间】:2018-05-21 15:14:46
【问题描述】:

我使用以下代码成功创建了 EmbeddedAssistantStub。

EmbeddedAssistantGrpc.EmbeddedAssistantStub mAssistantService = EmbeddedAssistantGrpc.newStub(channel)
                                  .withCallCredentials(MoreCallCredentials.from(
                                            Credentials.fromResource(mClientId,mRefreshToken,mAccessToken)
                                   ));

在此之后我将音频数据传递给 StreamObserver,当时发生了以下异常。

Line 3378: 12-07 12:59:25.099  1917  4286 E  GASample: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
Line 3378: 12-07 12:59:25.099  1917  4286 E  GASample: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
Line 3379: 12-07 12:59:25.099  1917  4286 E  GASample:  at io.grpc.Status.asRuntimeException(Status.java:540)
Line 3380: 12-07 12:59:25.099  1917  4286 E  GASample:  at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:392)
Line 3381: 12-07 12:59:25.099  1917  4286 E  GASample:  at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:428)
Line 3382: 12-07 12:59:25.099  1917  4286 E  GASample:  at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:76)
Line 3383: 12-07 12:59:25.099  1917  4286 E  GASample:  at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:514)
Line 3384: 12-07 12:59:25.099  1917  4286 E  GASample:  at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$700(ClientCallImpl.java:431)
Line 3385: 12-07 12:59:25.099  1917  4286 E  GASample:  at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:546)
Line 3386: 12-07 12:59:25.099  1917  4286 E  GASample:  at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)
Line 3387: 12-07 12:59:25.099  1917  4286 E  GASample:  at io.grpc.internal.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:152)
Line 3388: 12-07 12:59:25.099  1917  4286 E  GASample:  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
Line 3389: 12-07 12:59:25.099  1917  4286 E  GASample:  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
Line 3390: 12-07 12:59:25.099  1917  4286 E  GASample:  at java.lang.Thread.run(Thread.java:764)

在此之后响应观察者没有响应。

请帮我解决这个问题。

【问题讨论】:

    标签: grpc google-assistant-sdk grpc-java google-assist-api


    【解决方案1】:

    他们搞砸了他们的后端。等他们修好了。这是关于该错误的github线程: https://github.com/googlesamples/assistant-sdk-python/issues/138

    【讨论】:

      【解决方案2】:

      他们在后端解决了这个问题。

      @JHorseman:感谢您的支持。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-06-07
        • 2017-01-04
        • 1970-01-01
        • 1970-01-01
        • 2018-03-26
        • 2020-08-24
        • 2019-07-09
        相关资源
        最近更新 更多