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.

net::ERR_INVALID_HTTP_RESPONSE

See original GitHub issue

all request shows net::ERR_INVALID_HTTP_RESPONSE

i try to use demo by this https://github.com/grpc/grpc-web/tree/master/net/grpc/gateway/examples/helloworld
i want too simple so i didnt use docker and envoy; i make the client.js to request 8080 port and the server.js listen 8080 port. just modify this

// client
var client = new GreeterClient('http://127.0.0.1:8080',
                               null, null);
//server
  server.bind('0.0.0.0:8080', grpc.ServerCredentials.createInsecure());

when i open it in chrome it shows : image i add log in server method

function doSayHello(call, callback) {
  console.log('hello');
  callback(null, {message: 'Hello! '+ call.request.name});
}

but the hello not show
i think the server didnt get the request.

browser version

chrome 76.0.3809.100

thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:11

github_iconTop GitHub Comments

2reactions
orchiecommented, Sep 8, 2019

@stanley-cheung

You cannot not use Envoy for gRPC-Web at the moment. gRPC-Web browser client cannot communicate directly with a gRPC backend.

I did exactly that earlier today but without TLS. And it was through a Docker instance on Win10 connected to a .net core grpc service.

It would make sense to get nginx working again with the latest release. Perhaps the original author could weigh-in and outline the integration issues.

my server only run on nginx proxy,and its can not work. so I can not use grpc-web. 😦

1reaction
orchiecommented, Aug 31, 2019

#503 #534 I find nginx enable to use gprc on version 1.13,and I used 1.15 I try everything to config the nginx ,then the result is #503

2019/08/31 18:11:15 [error] 21756#26044: 
*2 upstream rejected request with error 2 while reading response header from upstream, 
client: 127.0.0.1, 
server: grpct.cn, 
request: "POST /helloworld.Greeter/SayHello HTTP/2.0", 
upstream: "grpc://127.0.0.1:50051", 
host: "grpct.cn", 
referrer: "https://grpct.cn/"

Read more comments on GitHub >

github_iconTop Results From Across the Web

[FIXED] NET::ERR_INVALID_RESPONSE Error Code Problem
How to Fix & Solve ERR_INVALID_RESPONSE Error Code Issue · 1. Flush the Socket Pools from your Internet Browser – · 2. Clear...
Read more >
ERR_INVALID_HTTP_RESPON...
Net Core 2.2 for serving APIs. When I am sending POST or PUT requests using Google Chrome browser, I get ERR_INVALID_HTTP_RESPONSE error.
Read more >
netgear router err invalid http response - Google Support
I cannot access my netgear router login from chrome. I used to be able to but about a month ago it stopped working....
Read more >
(Easy Ways) Error Code: ERR_INVALID_RESPONSE Chrome ...
Some Tags you can check: ERR_INVALID_RESPONSE, ERR INVALID RESPONSE, invalid response from server, http error codes, http response example, ...
Read more >
ERR_INVALID_HTTP_RESPON...
If I try with Firefox or Internet Explorer, everything works fine. ... I tried with CURL to check and I get below error:...
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