Closed
Description
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version
)?
go version go1.7.1 darwin/amd64
What operating system and processor architecture are you using (go env
)?
GOBIN="/Users/adamcarter/Projects/Go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/adamcarter/Projects/Go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/s2/ytl9qynd5vddgn2zq5fdhrwh0000gn/T/go-build763705077=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
What did you do?
Run the following code locally.
What did you expect to see?
A response without an error
What did you see instead?
I get the following error
Post https://api.pipedrive.com/v1/authorizations: stream error: stream ID 1; REFUSED_STREAM
Oddly when I pass a nil
body into the request, I get a response from the server stating that my email and password is required:
HTTP/2.0 400 Bad Request
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Sun, 11 Sep 2016 19:47:52 GMT
Server: nginx
Set-Cookie: pipe-session=%2FZgblzwot3xVcYbzSDhII%2BTrQZzIzyxMMJdlXjk%2Bx1zbSf%2FZdL2V7NyDA%2BIJ9bsAYAmDEEOx1Qv%2BRU1tECHImcc4JRT%2FktP%2BIj9fvhsAX8iIDQfVaiS75ScCRqClARrD0wNw%2Fg%3D%3D; path=/; domain=.pipedrive.com; secure; httponly
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
X-Ratelimit-Limit: 100
X-Ratelimit-Remaining: 99
X-Ratelimit-Reset: 10
X-Xss-Protection: 1; mode=block
{"success":false,"error":"Email or password not given.","error_info":"Please check developers.pipedrive.com for more information about Pipedrive API.","data":null,"additional_data":null}
Their server is nginx 1.9.15 and there are some places that indicate there's an issue with this particular version of nginx; However, I'd like to confirm with the folks here.
/cc @pipedrive