Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
document GOAWAY errors from Apple (#70)
Browse files Browse the repository at this point in the history
ref #33

[ci skip]
  • Loading branch information
nathany authored Jun 29, 2016
1 parent 00db379 commit 2f65712
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,19 @@ if e, ok := err.(*push.Error); ok {
}
```

##### GOAWAY errors

You will never receive some of Apple's documented error responses, such as `BadCertificateEnvironment`. This is because Apple sometimes returns error messages in a GOAWAY frame while disconnecting rather than in the usual DATA frame. Go [doesn't currently](https://github.com/golang/go/issues/14627) extract these GOAWAY errors. Instead you may see an error like this:

> http2: server sent GOAWAY and closed the connection
You can run your application with HTTP/2 logging enabled to see the GOAWAY frames that were sent, including the reason.

```console
$ GODEBUG=http2debug=1 ./myapp
http2: Transport received GOAWAY len=46 LastStreamID=0 ErrCode=NO_ERROR Debug="{\"reason\":\"BadCertificateEnvironment\"}"
```

### Website Push

Before you can send push notifications through Safari and the Notification Center, you must provide a push package, which is a signed zip file containing some JSON and icons.
Expand Down

0 comments on commit 2f65712

Please sign in to comment.