-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: should get "ok" but get no response #23336
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
Comments
Please see https://github.com/golang/go/wiki/Questions for a more appropriate place to ask questions. I don't see a specific bug report here - just a program that isn't doing what you wanted it to do. If there is a bug, please clarify what it is and give a short, concise program to reproduce it. |
This issue seems to happen in when using Postman only.
Minimal repro: https://play.golang.org/p/UQ6AVD5Lqlj Seems to me Postman is doing something with the connection. Tests were made using Go1.9.2/Windows & Go1.9.2/Linux |
You need to read the body. From what i see it exists a limit for unread request body data.
A quick solution for your code can be
|
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9.2 linux/amd64
go version go1.9.2 windows/amd64
both got the same problem
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?one is windows:
$ go env
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=E:\GoProject
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
one is linux:
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/GoProject"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build038803651=/tmp/go-build"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
What did you do?
code is simple enough:
What did you expect to see?
I post a file

with chrome plugin postman. I should get the response "ok".
What did you see instead?
No response.
The text was updated successfully, but these errors were encountered: