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

unexpected EOF while trying to push #76

Closed
azr opened this issue Jul 29, 2016 · 5 comments
Closed

unexpected EOF while trying to push #76

azr opened this issue Jul 29, 2016 · 5 comments

Comments

@azr
Copy link

azr commented Jul 29, 2016

Hello there,

recently I get unexpected EOF errors when I try to send notifications, 0 notification will work now.

What did you do? (steps to reproduce or a code sample is helpful)

  • Try to send a notification

What did you expect to see?

  • A notification

What did you see instead?

  • Post https://api.push.apple.com/3/device/{token}: unexpected EOF in the logs.

Is there a way to know what happened ? Shouldn't buford tell a bit more on it ??

Thanks !

@nathany
Copy link
Contributor

nathany commented Jul 29, 2016

Please try running your Go program with GODEBUG which may show additional error information.

GODEBUG=http2debug=1 ./yourprogram

Possibly related #33.

Are you running the latest version of Buford and x/net/http2?

@azr
Copy link
Author

azr commented Jul 29, 2016

Okay, that debug option is awesome !

This is the last versions of both pkgs yes.

I found a particularly interesting log line:

2016-07-29T16:34:33.399788+00:00 app[web.1]: transport.go:1694: http2: Transport received GOAWAY len=46 LastStreamID=0 ErrCode=NO_ERROR Debug="{\"reason\":\"BadCertificateEnvironment\"}"

@nathany
Copy link
Contributor

nathany commented Jul 29, 2016

Interesting, indeed. I've seen that error before -- in fact I thought it was getting parsed out correctly as of v0.10.0 of Buford. https://github.com/RobotsAndPencils/buford/releases/tag/v0.10.0

❯ ./push -c cert.p12 -d device-token -e production
certificate was for the wrong environment

(this is on Go 1.6.3 with El Capitan 10.11.6)

In any case, the error means you are hitting Apple's production environment with a certificate intended for development or visa versa.

@azr
Copy link
Author

azr commented Jul 31, 2016

Ah ! Okay, I'm going to fix that on monday ! Thanks for you answers & time ! :)

@nathany
Copy link
Contributor

nathany commented Aug 1, 2016

No problem. Be sure to let me know if you run into any other difficulties with Buford.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants