You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to use Repository.writeFile, this error occurs:
(node:8240) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'status' of undefined
at handler (C:\Program Files\nodejs\node_modules\github-api\dist\components\Requestable.js:372:40)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8240) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:8240) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Here is the code used:
GitHub = require("github-api");
github = new GitHub(username, password);
repo = github.getRepo(user, repo) // actual values are "kyllta", "urlshortener"
repo.writeFile(
"main",
"test_file.txt",
"test contents",
"test commit"
);
Any attempts to use in HTML code (Chrome) result in this error:
When attempting to use Repository.writeFile, this error occurs:
Here is the code used:
Any attempts to use in HTML code (Chrome) result in this error:
My suspicion is incorrect headers, but I don't know much.
#577 and #520 are similar, but have different errors, and so don't seem to apply.
The text was updated successfully, but these errors were encountered: