How to subscribe to PubSubHubbub github?

I am currently trying to write a base client that listens for events from (enterprise) github and calls API requests accordingly.

The problem is that I cannot configure the PubSubHubbub client. I thought this was the client / authentication I use, but now I can not get the basic docs call!

In an attempt to figure out what I'm doing wrong, I make a curl request to my regular github account:

curl -u "joepym" -i \ https://api.github.com/hub \ -F "hub.mode=subscribe" \ -F "hub.topic=http://github.com/JoePym/faraday/events/push" \ -F "hub.callback=*callbackurl*" 

and i'm coming back

 HTTP/1.1 100 Continue HTTP/1.1 422 Unprocessable Entity Server: GitHub.com Date: Wed, 08 May 2013 18:13:24 GMT Content-Type: application/json; charset=utf-8 Connection: keep-alive Status: 422 Unprocessable Entity X-RateLimit-Limit: 5000 X-RateLimit-Remaining: 4989 X-GitHub-Media-Type: github.beta X-Content-Type-Options: nosniff Content-Length: 38 { "message": "Invalid event: nil" } 

This invalid event message is what my main client also receives when I try to call my enterprise github account with enterprise credentials.

Has anyone come across this before?

+4
source share
1 answer

Try using https://github.com/JoePym/faraday/events/push as your hub.topic. Please note that now we are using "https".

+1
source

Source: https://habr.com/ru/post/1479803/


All Articles