-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
http.TestClient and TestRedirect FAIL: Get http://www.google.com/robots.txt: unexpected EOF #20
Labels
Comments
I met the similar issue. I know everything has been successfully built and installed. But I wonder what is the root cause of the "unexpected EOF"? Thanks. Here's my output: --- FAIL: http.TestClient Get http://www.google.com/robots.txt: unexpected EOF --- FAIL: http.TestRedirect Get http://codesearch.google.com/: unexpected EOF |
Hi, Michael. I'm running ubuntu 9.10 and all firewalls (iptables) are disabled (double checked with iptables -L -n). lcgong's issue is "connection reset by peer" which should be related to the firewall. But why "unexpected EOF" is related to firewall? I use firefox to get the URL, it works well. So may be some issue in this test code. |
I attached 2 capture files. The "httpTestClientFail.pcap" contains the packet sequence when trying to get the robot.txt file from google. It seems the connection is incorrectly FIN and RST by the server. But in "googleRobot.pcap" file, it contains the packets when I tried using FireFox for http://www.google.com/robot.txt. It seems everything is correct. Not sure why google's server doesn't allow the HTTP GET from "go client". Attachments:
|
Went past the printer error by including it in the NOTEST list. Now I am getting the following error: --- FAIL: tar.TestReader test 0: Unexpected error: open testdata/gnu.tar: error 530 test 1: Unexpected error: open testdata/star.tar: error 530 test 2: Unexpected error: open testdata/v7.tar: error 530 --- FAIL: tar.TestPartialRead Unexpected error: open testdata/gnu.tar: error 530 --- FAIL: tar.TestWriter test 0: Unexpected error: open testdata/writer.tar: error 530 test 1: Unexpected error: open testdata/writer-big.tar: error 530 FAIL make[1]: *** [test] Error 1 make[1]: Leaving directory `/go/src/pkg/archive/tar' make: *** [archive/tar.test] Error 2 |
Issue #177 has been merged into this issue. |
Issue #199 has been merged into this issue. |
After updating my go source after a week, I'm now getting the following error when building on OSX: make[2]: Entering directory `/Users/jschill1/Documents/go/src/pkg/net' 6g -o _gotest_.6 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_darwin.go ip.go ipsock.go net.go parse.go port.go sock.go tcpsock.go udpsock.go unixsock.go dialgoogle_test.go ip_test.go net_test.go parse_test.go port_test.go server_test.go timeout_test.go rm -f _test/net.a gopack grc _test/net.a _gotest_.6 make[2]: Leaving directory `/Users/jschill1/Documents/go/src/pkg/net' --- FAIL: net.TestUDPServer TestPacket udp 0.0.0.0 127.0.0.1 TestPacket udp 127.0.0.1 TestPacket udp [::] [::ffff:127.0.0.1] TestPacket udp [::] 127.0.0.1 TestPacket udp 0.0.0.0 [::ffff:127.0.0.1] TestPacket udp 0.0.0.0 127.0.0.1 TestPacket udp 127.0.0.1 TestPacket udp [::] [::ffff:127.0.0.1] TestPacket udp [::] 127.0.0.1 TestPacket udp 0.0.0.0 [::ffff:127.0.0.1] fd.Read() = 0, read udp:127.0.0.1:52711->127.0.0.1:52710: resource temporarily unavailable (want 0, nil) FAIL make[1]: *** [test] Error 1 Is it related? |
today I pulled the go code and tried to build I got this error. make[2]: Leaving directory `/home/sun/go/src/pkg/go/printer' --- FAIL: printer.Test open testdata/empty.input: error 530 open testdata/comments.input: error 530 open testdata/comments.input: error 530 open testdata/linebreaks.input: error 530 open testdata/expressions.input: error 530 open testdata/expressions.input: error 530 open testdata/declarations.input: error 530 open testdata/statements.input: error 530 FAIL make[1]: *** [test] Error 1 make[1]: Leaving directory `/home/sun/go/src/pkg/go/printer' make: *** [go/printer.test] Error 2 |
Issue #1115 has been merged into this issue. |
Issue #1117 has been merged into this issue. |
I get the exact error as in the OP, but there is no firewall. We do have a proxy, which wget handles correctly: $ env | grep -i proxy ftp_proxy=http://fooproxy:74 https_proxy=http://fooproxy:74 http_proxy=http://fooproxy:74 no_proxy=localhost,127.0.0.0/8 $ wget http://google.com/robots.txt --20:44:38-- http://google.com/robots.txt Resolving fooproxy... 339.95.250.47 Connecting to svlproxy|339.95.250.47|:74... connected. Proxy request sent, awaiting response... 301 Moved Permanently Location: http://www.google.com/robots.txt [following] --20:44:38-- http://www.google.com/robots.txt Connecting to svlproxy|339.95.250.47|:74... connected. Proxy request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `robots.txt' [ <=> ] 5,173 --.-K/s in 0s 20:44:38 (183 MB/s) - `robots.txt' saved [5173] $ md5sum robots.txt 51bc0b6be58f56db2180b6c73a8c66ff robots.txt |
Comment 28 by rsc@swtch.com: @workitharder: you have issue #53. |
Comment 29 by hoka@hokapoka.com: I too am getting this on an x86 that was updated & tested about 2 weeks ago that's using any form of proxy. Here's some of the log : ----------------------------------------------------------------- make[2]: Leaving directory `/home/andrew/gosource/src/pkg/http' make[2]: Entering directory `/home/andrew/gosource/src/pkg/http' /home/andrew/bin/8g -o _gotest_.8 chunked.go client.go dump.go fs.go lex.go persist.go request.go response.go server.go status.go transfer.go url.go client_test.go lex_test.go readrequest_test.go request_test.go requestwrite_test.go response_test.go responsewrite_test.go url_test.go rm -f _test/http.a /home/andrew/bin/gopack grc _test/http.a _gotest_.8 make[2]: Leaving directory `/home/andrew/gosource/src/pkg/http' --- FAIL: http.TestRedirect Get(http://codesearch.google.com/) got status 200 at http://codesearch.google.com/, want 200 at http://www.google.com/codesearch FAIL make[1]: *** [test] Error 1 make[1]: Leaving directory `/home/andrew/gosource/src/pkg/http' make: *** [http.test] Error 2 --------------------------------------------------------------- I'm getting a different issue on a separate network using x64. The tests in ./all.bash script just hangs at this test: gopack grc _test/net.a _gotest_.6 These were newly installed linux machines. Before I saw this post I tested the installation of Go with a very simple "hello world", which worked fine. That being said, the export DISABLE_NET_TESTS=1 you suggested Russ allows the tests to complete w/o hitch. |
Package http no longer uses the external network: http://code.google.com/p/go/source/detail?r=b8d901732d17 Labels changed: added pkg-http. Owner changed to @bradfitz. Status changed to Fixed. |
This was referenced Dec 8, 2014
Closed
minux
pushed a commit
to minux/goios
that referenced
this issue
Feb 27, 2015
Fixes golang#20 Unary OMINUS was all messed up, so port over the 5g version. In the process the unused uop: label and code was found to be unused.
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by lcgong:
The text was updated successfully, but these errors were encountered: