I get this error when trying your example on my repository: ```js (node:7604) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead. GET /repos/tgs-bot-ghost/test/git/refs/heads/master 400 Rate limit undefined/undefined left C:\Users\Kyle\Desktop\js-github\examples\readme-caps.js:39 var headHash = yield repo.readRef("refs/heads/master"); ^ Error: Invalid HTTP response: 400 <!DOCTYPE html> [...] at onRef (C:\Users\Kyle\Desktop\js-github\mixins\github-db.js:284:25) at IncomingMessage.<anonymous> (C:\Users\Kyle\Desktop\js-github\lib\xhr-node.js:75:16) at emitNone (events.js:91:20) at IncomingMessage.emit (events.js:185:7) at endReadableNT (_stream_readable.js:974:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickCallback (internal/process/next_tick.js:98:9) ```
Activity
creationix commentedon Jan 12, 2017
Seems related to #12
k-yle commentedon Jan 12, 2017
This seams to fix it as far as I can see
creationix commentedon Jan 12, 2017
You're welcome to send in a PR
k-yle commentedon Jan 13, 2017
Done in #14
Closing because it's fixed for me now.