GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [IoT] IoT client got Internal error HTTP/2. Received Rst Stream. · Issue #3367 · googleapis/google-cloud-java

[IoT] IoT client got Internal error HTTP/2. Received Rst Stream. #3367

New issue
Copy link
New issue
Copy link
Closed
Closed
[IoT] IoT client got Internal error HTTP/2. Received Rst Stream.#3367
Copy link
Assignees
yihanzhen
Labels
api: cloudiotIssues related to the IoT Core API.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.type: questionRequest for information or clarification. Not an issue.

Description

@koncha99
koncha99
opened on Jun 12, 2018
Issue body actions

Hi,

When I use the client library for IoT, I got a HTTP/2 internal error with message, "Received Rst Stream".
In here, I used listDevicesCallable() , but also got a same error for simpler call, listDevices().
Does anyone has an insight for this error?

Thank you.

Java version

1.10

API Version

0.51-beta (also tried 0.48-beta and 0.50-beta)

Stacktrace

java.util.concurrent.ExecutionException: com.google.api.gax.rpc.InternalException: io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR
Received Rst Stream
	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:526)
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:507)
	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:83)
       ....
Caused by: com.google.api.gax.rpc.InternalException: io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR
Received Rst Stream
	at com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:67)
	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72)
	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60)
	at com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:95)
	at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:61)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1349)
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:398)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1024)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:866)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:711)
	at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:492)
	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:467)
	at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
	at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
	at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)
	at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
	at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
	at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:391)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:471)
	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:553)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:474)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:591)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	... 1 more
Caused by: io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR
Received Rst Stream
	at io.grpc.Status.asRuntimeException(Status.java:526)
	... 22 more

Activity

  1. JustinBeckwith
    added
    triage meI really want to be triaged.
    on Jun 12, 2018
  2. yihanzhen
    added
    api: cloudiotIssues related to the IoT Core API.
    type: questionRequest for information or clarification. Not an issue.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    and removed
    triage meI really want to be triaged.
    on Jun 13, 2018
  3. yihanzhen
    self-assigned this
    on Jun 13, 2018
  4. yihanzhen commented on Jun 13, 2018

    @yihanzhen
    yihanzhen
    on Jun 13, 2018
    Contributor
    More actions

    Hi koncha99,

    I'll try to see if I can reproduce. But just wondering if you are seeing this error all the time or intermittently?

  5. yihanzhen
    closed this as completedon Jun 13, 2018
  6. yihanzhen commented on Jun 13, 2018

    @yihanzhen
    yihanzhen
    on Jun 13, 2018
    Contributor
    More actions

    Whoops, hit the wrong button

  7. yihanzhen
    reopened this on Jun 13, 2018
  8. koncha99 commented on Jun 14, 2018

    @koncha99
    koncha99
    on Jun 14, 2018
    Author
    More actions

    Hi,
    Thanks for help. It occurs all the time in my code.

  9. yihanzhen commented on Jun 14, 2018

    @yihanzhen
    yihanzhen
    on Jun 14, 2018
    Contributor
    More actions

    Sorry I wasn't able to reproduce this issue. My code looks like:

    DeviceManagerClient client = DeviceManagerClient.create();
    RegistryName parent = RegistryName.of("[project_name]", "[zone_name]", "[registry_name]");
    ListDevicesRequest request = ListDevicesRequest.newBuilder()
        .setParent(parent.toString())
        .build();
    System.out.println(client.listDevices(request));
    

    And the response object is successfully received. Can you share your repro code and your environment (local machine, gae/gce, etc.)?

  10. koncha99 commented on Jun 15, 2018

    @koncha99
    koncha99
    on Jun 15, 2018
    Author
    More actions

    Sorry, I need to modify my comment before. It occurs intermittently.
    I tried again from local machine with the code which is same with yours.
    Code: https://github.com/koncha99/cloud-iot-api-sample
    Region: asia-east1

    But, it sometime succeeded and sometime failed with same errors before.
    Although I suspected my network environment, but situation didn't change even when I tried from another network. So I filed an issue on support desk of google clouds.

    If there is any progress, I will inform you.

  11. yihanzhen
    added
    status: blockedResolving the issue is dependent on other work.
    on Jul 3, 2018
  12. yihanzhen commented on Sep 4, 2018

    @yihanzhen
    yihanzhen
    on Sep 4, 2018
    Contributor
    More actions

    Any updates on this? I'll close this if the issue has gone.

  13. yihanzhen
    closed this as completedon Sep 17, 2018
  14. theacodes
    unassigned
    yihanzhen
    on Sep 28, 2018
  15. JustinBeckwith
    assigned
    yihanzhen
    on Feb 1, 2021
  16. suztomo
    added a commit that references this issue on Mar 9, 2026

    test(deps): update dependency com.google.cloud:google-cloud-storage t…

    bc63544
  17. chingor13
    added 4 commits that reference this issue on Mar 24, 2026

    deps: update google auth library dependencies to v1.30.0 (#3367)

    0fc8d39

    chore(main): release 2.50.0 (#3327)

    97dfec7

    deps: update junixsocket.version to v2.10.1 (#3367)

    1e87b8a

    test(deps): update gcr.io/cloud-devrel-public-resources/storage-testb…

    0cdda20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @yihanzhen
    yihanzhen

Labels

api: cloudiotIssues related to the IoT Core API.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.