Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: request www.java.com stream ID 1; INTERNAL_ERROR #66306

Closed
ddatsh opened this issue Mar 14, 2024 · 3 comments
Closed

net/http: request www.java.com stream ID 1; INTERNAL_ERROR #66306

ddatsh opened this issue Mar 14, 2024 · 3 comments

Comments

@ddatsh
Copy link
Contributor

ddatsh commented Mar 14, 2024

Go version

any?

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://goproxy.io'
GOROOT='/data/.g/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/data/.g/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.1'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3731711686=/tmp/go-build -gno-record-gcc-switches'

What did you do?

package main

import (
	"fmt"

	"net/http"
)

func main() {
	_, err := http.Get("https://www.java.com")
	if err != nil {
		fmt.Println(err)
		return
	}
}

What did you see happen?

Get "https://www.java.com": stream error: stream ID 1; INTERNAL_ERROR; received from peer

What did you expect to see?

request success

@ddatsh ddatsh changed the title request www.java.com error net/http request www.java.com stream ID 1; INTERNAL_ERROR Mar 14, 2024
@ddatsh ddatsh changed the title net/http request www.java.com stream ID 1; INTERNAL_ERROR net/http: request www.java.com stream ID 1; INTERNAL_ERROR Mar 14, 2024
@xmx
Copy link

xmx commented Mar 14, 2024

https://www.java.com verified request User-Agent prefix, for example: okhttp curl Go-http-client python-requests etc.

@ddatsh
Copy link
Contributor Author

ddatsh commented Mar 14, 2024

https://www.java.com verified request User-Agent prefix, for example: okhttp curl Go-http-client python-requests etc.

try request in postman with no User-Agent, success

@seankhliao
Copy link
Member

sounds like a server issue

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants