Title: Fixed: Cannot read property 'encode' of undefined during executing writeFile() by makishvili · Pull Request #456 · github-tools/github · GitHub
Open Graph Title: Fixed: Cannot read property 'encode' of undefined during executing writeFile() by makishvili · Pull Request #456 · github-tools/github
X Title: Fixed: Cannot read property 'encode' of undefined during executing writeFile() by makishvili · Pull Request #456 · github-tools/github
Description: I am trying to execute writeFile without optional options-parameter.
repo.writeFile('master', 'file.txt', 'some text', some message');
But getting the error:
~project/node_modules/github-api/dist/components/Repository.js:912
var shouldEncode = options.encode !== false;
^
TypeError: Cannot read property 'encode' of undefined
at Repository.writeFile (~project/node_modules/github-api/dist/components/Repository.js:912:36)
at Object.
Open Graph Description: I am trying to execute writeFile without optional options-parameter. repo.writeFile('master', 'file.txt', 'some text', some message'); But getting the error: ~project/no...
X Description: I am trying to execute writeFile without optional options-parameter. repo.writeFile('master', 'file.txt', 'some text', some message'); But ge...
Opengraph URL: https://github.com/github-tools/github/pull/456
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1bf2a1b2-33bb-7c5d-0883-b613e96f9cff |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E1A8:77C42:1E5B840:2813777:6971AB24 |
| html-safe-nonce | 0c08b20b656864253a9aba6828602000113ec0fcf4fe8a7b953aa3af2d4829e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUE4Ojc3QzQyOjFFNUI4NDA6MjgxMzc3Nzo2OTcxQUIyNCIsInZpc2l0b3JfaWQiOiI2NzIwNzg5NTUyNjc2NTgwMTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 544e8eb60532e02136ab71f45d1224182e1805e6245e71954db2940b52173dca |
| hovercard-subject-tag | pull_request:125989777 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github-tools/github/pull/456/files |
| twitter:image | https://avatars.githubusercontent.com/u/48478?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/48478?s=400&v=4 |
| og:image:alt | I am trying to execute writeFile without optional options-parameter. repo.writeFile('master', 'file.txt', 'some text', some message'); But getting the error: ~project/no... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b0f2f00499ad3dd2c21ad030a3c403edca54df20ea256f6517c6d8c4fa3a1a4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github-tools/github git https://github.com/github-tools/github.git |
| octolytics-dimension-user_id | 16116810 |
| octolytics-dimension-user_login | github-tools |
| octolytics-dimension-repository_id | 3640925 |
| octolytics-dimension-repository_nwo | github-tools/github |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3640925 |
| octolytics-dimension-repository_network_root_nwo | github-tools/github |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 979375c570cc30aefe2a734083debe402a612209 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width