question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android java GRPC: Error: INTERNAL: Missing HTTP status code

See original GitHub issue

Please answer these questions before submitting your issue.

What version of gRPC are you using?

1.8.0

What did you expect to see?

Correct response,

on android maven build I get the following error on response (note I see the correct response on the logs but the error stops it been returned correctly


Error: INTERNAL: Missing HTTP status code
                                                       headers: Metadata(strict-transport-security=max-age=31536000)

//code


  String  macaroon = "my macroon";
  
  ManagedChannel channel = OkHttpChannelBuilder.forAddress("btcpayt3.indiesquare.net", 443).build();
    LightningBlockingStub stub = LightningGrpc
        .newBlockingStub( channel)
        .withCallCredentials(new MacaroonCallCredential(macaroon));
 
    GetInfoResponse response = stub.getInfo(GetInfoRequest.getDefaultInstance());

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ericgribkoffcommented, Nov 15, 2018

You were likely hitting this bug with gRPC OkHttp, fixed in our 1.11.0 release: https://github.com/grpc/grpc-java/issues/4261.

0reactions
mandelmonkeycommented, Nov 15, 2018

I can confirm the the issue was the version 1.8.0, changing to 1.6.1 fixes it so I will close and post my maven pox.xml code for reference

<properties>
    <grpc.version>1.16.1</grpc.version>
</properties> 

<dependencies>
    
   <dependency>
        <groupId>io.grpc</groupId>
        <artifactId>grpc-netty</artifactId>
        <version>${grpc.version}</version>
    </dependency>
 
     <dependency>
    <groupId>io.grpc</groupId>
    <artifactId>grpc-okhttp</artifactId>
    <version>${grpc.version}</version>
</dependency>

  <dependency>
    <groupId>io.grpc</groupId>
    <artifactId>grpc-testing</artifactId>
    <version>${grpc.version}</version>
</dependency>



    <dependency>
        <groupId>io.grpc</groupId>
        <artifactId>grpc-protobuf</artifactId>
        <version>${grpc.version}</version>
    </dependency>
    <dependency>
        <groupId>io.grpc</groupId>
        <artifactId>grpc-stub</artifactId>
        <version>${grpc.version}</version>
    </dependency>
       <dependency>
        <groupId>io.grpc</groupId>
        <artifactId>grpc-stub</artifactId>
        <version>${grpc.version}</version>
    </dependency>
   <dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpclient</artifactId>
    <version>4.3.4</version>
</dependency>
   
Read more comments on GitHub >

github_iconTop Results From Across the Web

java.io.IOException: grpc failed - Stack Overflow
I can reproduce this issue (java.io.IOException: grpc failed), when there is no Internet connection on my real device.
Read more >
Error Handling in gRPC - Baeldung
Java encapsulates this error model with the class io.grpc.Status. This class requires a standard error status code and an optional string ...
Read more >
Enum Status.Code - gRPC on GitHub
Internal errors. Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken....
Read more >
Basics tutorial | Android Java - gRPC
Then we define rpc methods inside our service definition, specifying their request and response types. gRPC lets you define four kinds of ...
Read more >
415 Unsupported Media Type - HTTP - MDN Web Docs
The HTTP 415 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found