github-tools / github-tools/github
Can't create a blob
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 809
- PR merge metrics
- No merged PRs in 30d
Description
```JavaScript
const GitHub = require('github-api');
const github = new GitHub({
username: 'iddan',
password: '********',
});
const mesimaivrit = github.getRepo('mesimaivrit');
mesimaivrit.createBlob('hello')
.then(console.log)
```
throws: `Error: 404 error making request POST https://api.github.com/repos/mesimaivrit/git/blobs: "Not Found"`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the createBlob entry point in the JavaScript wrapper and reproduce the supplied example against the GitHub git/blobs endpoint. Trace the request made by createBlob and compare it with the endpoint's expected request, then verify that the example creates a blob successfully without the reported 404.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100