sindresorhus/refined-github

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Cannot read property 'append' of null, GH Enterprise #4747

seglo posted onGitHub

Please ensure:

  • The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.

Description

This plugin used to work with my company's GitHub enterprise, but something broke in the past few weeks.

refined-github.js:1910 āŒ faster-pr-diff-options 21.8.22 GHE ā†’ TypeError: Cannot read property 'append' of null
    at init (refined-github.js:5465)
    at runFeature (refined-github.js:1935)
    at setupPageLoad (refined-github.js:1948)
    at HTMLDocument.<anonymous> (refined-github.js:1971)

There are some other info level messages about a personal access token required, but not sure what that's about.

Screenshot

image

Console errors

ā„¹ļø update-pr-from-base-branch ā†’ Personal token required for this feature
refined-github.js:1909 ā„¹ļø remove-label-faster ā†’ Personal token required for this feature
refined-github.js:1909 ā„¹ļø bugs-tab ā†’ Personal token required for this feature
refined-github.js:1910 āŒ faster-pr-diff-options 21.8.22 GHE ā†’ TypeError: Cannot read property 'append' of null
    at init (refined-github.js:5465)
    at runFeature (refined-github.js:1935)
    at setupPageLoad (refined-github.js:1948)
    at HTMLDocument.<anonymous> (refined-github.js:1971)
refined-github.js:1910 Search issue
refined-github.js:1911 https://github.com/sindresorhus/refined-github/issues?q=is%3Aissue+Cannot%20read%20property%20'append'%20of%20null
refined-github.js:1915 Open an issue
refined-github.js:1915 https://github.com/sindresorhus/refined-github/issues/new?labels=bug&template=1_bug_report.md&title=%60faster-pr-diff-options%60%3A+Cannot+read+property+%27append%27+of+null&body=%0A%3C%21--+Please+also+include+a+screenshot+if+the+issue+is+visible+--[redacted]%28chrome-extension%3A%2F%2Fhlepfoohegkhhmjieoechaddaejaokhf%2Fbuild%2Frefined-github.js%3A5465%3A60%29%0A++at+runFeature+%28chrome-extension%3A%2F%2Fhlepfoohegkhhmjieoechaddaejaokhf%2Fbuild%2Frefined-github.js%3A1935%3A24%29%0A++at+setupPageLoad+%28chrome-extension%3A%2F%2Fhlepfoohegkhhmjieoechaddaejaokhf%2Fbuild%2Frefined-github.js%3A1948%3A40%29%0A++at+HTMLDocument.%3Canonymous%3E+%28chrome-extension%3A%2F%2Fhlepfoohegkhhmjieoechaddaejaokhf%2Fbuild%2Frefined-github.js%3A1971%3A60%29%0A%60%60%60%0A%09
refined-github.js:1909 ā„¹ļø bugs-tab ā†’ Personal token required for this feature

Example URL

https://ghe.internal.zone/Org/Repo/pull/497/files

Browser(s) used

Vivaldi (Chrome)


What version of GHE? Not seeing an error for this feature. Also can you be more descriptive with your URL? Doubt this was running on the repos homepage.

posted by busches over 3 years ago

What version of GHE?

GitHub Enterprise Server 2.22.15

Also can you be more descriptive with your URL? Doubt this was running on the repos homepage.

I can't reproduce the issue on github.com and the GHE instance is private. The format of the URL was:

https://ghe.internal.zone/Org/Repo/pull/497/files

posted by seglo over 3 years ago

edit: Apologies, found the proper issue for this: https://github.com/sindresorhus/refined-github/issues/4695

Seeing similar issues on Enterprise Cloud / GitHub.com. pjax appears to be breaking Refined Github on PR pages.

Trying to run bisect to find the issue doesn't work, https://github.com/sindresorhus/refined-github/blob/d8cadc830723728ab5c32f36cea31ea3f6aee814/source/helpers/bisect.tsx#L54 document.body is somehow null.

highlight-deleted-and-added-files-in-diffs is breaking due to https://github.com/sindresorhus/refined-github/blob/d8cadc830723728ab5c32f36cea31ea3f6aee814/source/features/highlight-deleted-and-added-files-in-diffs.tsx#L43 trying to call cloneNode on undefined.

Sometimes refreshing the page can get it to work. non-Enterprise repos are encountering similar issues. De-authing with GHEC doesn't seem to help.

posted by williammck over 3 years ago

I cannot recreate on GHE 3.0. We're open to patches, but keep in mind that 2.22 is out of support in about six weeks. https://docs.github.com/en/enterprise-server@2.22/admin/release-notes#2.22.15

posted by busches over 3 years ago
posted by fregante over 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests