Skip to content

Conversation

@ckingdev
Copy link

It appears that the version of nginx running on your production servers has a bug with HTTP/2. I'm receiving the same error when using the library-

2017/03/09 19:49:26 Post https://api.simplepush.io/send: stream error: stream ID 1; REFUSED_STREAM

As a workaround for this, HTTP/2 can be disabled by setting http.Transport.TLSNextProto to a non-nil, empty map. The end of the net/http package overview gives details on this. Alternatively, nginx could be upgraded- it appears that nginx 1.11.0 has the necessary fix though I haven't played with this myself. I can confirm that this does fix the problem when testing against my personal key.

Thanks for putting together the service and library, it's a joy to use.

@ckingdev
Copy link
Author

As an aside, this repo has issues disabled- if that's intentional, don't mind me, but I thought I'd bring it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant