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
I am using refined github on a lot of machines successfully, with a personal token configured.
no matter on which workstation I try, the 'restore file' action from a Pull Request 'Files changed tab' runs into "unprocessible entity" error.
repro
open a PR you own in Firefox
open 'Files changed tab'
click "..." from one of the PRs files
select 'restore file'
expected
toast message "restoring..."
toast message "committing..."
toast message "success"
actual:
toast message "restoring..."
toast message "committing..."
toast message "unprocessible entity" ❌
the error happens on any file I pick of any PR I have submitted
I am using this feature successfully in chrome on the very same pull requests and the very same machine.
I can reproduce the error on macOS and windows11.
Include in this issue:
Screenshots/video/gif demonstrating the bug, if it’s visual
I'd like to fix this or else it's likely that this issue will just stay open forever.
Can you try again and copy the "unprocessable entity" request from the developer tools "as cURL"? Just ensure to remove or break the token before pasting it here. I want to see how it compares to a request that is accepted.
Also include the file you're trying to restore (make sure you try this on a small file because it will be part of the cURL)
Activity
staabm commentedon Jun 11, 2022
the feature did never work for me in Firefox (its not a recent regression)
fregante commentedon Jun 15, 2022
It works for me
Screen.Recording.mov
Does
update-pr-from-base-branchwork for you? Just to exclude some API/token errors.Also it'd be good to see:
[-]'restore file' does not work in firefox[/-][+]`restore-file` does not work in firefox[/+]fregante commentedon Jun 15, 2022
Also:
It appears to be failing here:
refined-github/source/features/restore-file.tsx
Lines 73 to 76 in 90edb0f
Also related:
refined-github/source/helpers/dom-utils.ts
Lines 4 to 8 in 3733f38
test change
staabm commentedon Jun 17, 2022
thanks for your investigation.
yep, works for me. using it several times a day.
Stacktrace
I can't see any http requets after pushing 'restore'
I can reproduce the issue on this repo in refined-github/sandbox#17
I have a few brower extensions. I just disabled all but refined github.
the error still reproduces
fregante commentedon Jul 22, 2022
I'd like to fix this or else it's likely that this issue will just stay open forever.
Can you try again and copy the "unprocessable entity" request from the developer tools "as cURL"? Just ensure to remove or break the token before pasting it here. I want to see how it compares to a request that is accepted.
Also include the file you're trying to restore (make sure you try this on a small file because it will be part of the cURL)
staabm commentedon Jul 22, 2022
hmm I can no longer reproduce on the sandbox repo with refined-github/sandbox#26
did another test on redaxo/core#5261 and it also works.
not sure why it started working and when!? 🤷
I was able to reproduce this issue for months and now it seems no longer appear?