Nodejs的GitHub的API要点创build – 接收Socket挂起来

我试图通过github api创buildGist – 使用npm模块“github”(https://github.com/ajaxorg/node-github/)

我有这个代码

var gh = new GitHubApi({ version: "3.0.0" }); gh.authenticate({ type: "oauth", token: data.token }); gh.user.get({}, function (err, data) { console.log(err); console.log(data); var blob = {}; blob.repo = commitData.repo; blob.user = commitData.user; blob.content = commitData.content; blob.encoding = commitData.encoding; gh.gitdata.createBlob(blob, function (err, blob) { console.log(err); console.log(blob); cb('failed'); }); }); 

问题是createBlob函数正在接收这个

 { defaultMessage: 'Internal Server Error', message: 'socket hang up', code: '500' } 

我在heroku免费实例(基于express)上运行我的应用程序。

非常感谢,我正在解决它几天,仍然无法使其工作。

也许api.github.com有一些中断?

奇怪,但是7月19日的 status.github.com 报告显示,那段时间一切正常。