You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I navigate to my server using Chrome, everything works just fine. A Hello World is returned and there are no errors on the server. However, if I try to navigate to my server via lynx myserver.com, my server shows this error:
events.js:177
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:183:27)
Emitted 'error' event at:
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at processTicksAndRejections (internal/process/task_queues.js:84:9) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}
And the page returns a "HTTP/1.0 403 Forbidden" response, and this message:
Unknown ALPN Protocol, expected `h2` to be available.
If this is a HTTP request: The server was not configured with the `allowHTTP1` option or a listener for the `unknownProtocol` event.
Now sure -- nobody in their right mind would use lynx, but I'm using it to simulate what Googlebot sees -- which is the same 403 error. This means that none of the websites that I create with http2 are indexed by Google. This is a big problem.
Now, if I add {allowHTTP1: true} to my createSecureServer call, the server error goes away and the server doesn't return a 403 anymore -- however, now lynx simply hangs forever on "HTTP request sent, waiting for response".
Any advice would be appreciated.
The text was updated successfully, but these errors were encountered:
I'm using the default provided documentation for HTTP2:
When I navigate to my server using Chrome, everything works just fine. A Hello World is returned and there are no errors on the server. However, if I try to navigate to my server via
lynx myserver.com
, my server shows this error:And the page returns a "HTTP/1.0 403 Forbidden" response, and this message:
Now sure -- nobody in their right mind would use
lynx
, but I'm using it to simulate what Googlebot sees -- which is the same 403 error. This means that none of the websites that I create withhttp2
are indexed by Google. This is a big problem.Now, if I add
{allowHTTP1: true}
to mycreateSecureServer
call, the server error goes away and the server doesn't return a 403 anymore -- however, nowlynx
simply hangs forever on "HTTP request sent, waiting for response".Any advice would be appreciated.
The text was updated successfully, but these errors were encountered: