github-tools / github-tools/github

Can't create a blob

Open
#438 0 comments 1 reaction 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.