-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AUR >= v6.0.0 Released, /rpc.php
endpoint no longer exists
#1684
Comments
For a filthy hack to fix this locally without rebuilding $ sudo sed -i 's:rpc.php:rpc////:g' /usr/bin/yay (This replaces Then you can just wait for Edit: the trailing slashes seem to be causing a problem for some still. This alternative from @pmarreck (link) $ sudo sed -i.bak 's:rpc\.php:r%70%63:g' `which yay` (note: this also creates a backup |
How long do i have to stare at this screen before I can fix thing like this on my own? |
have you tried the filthy solution suggested above?? Try if it works for you. |
well to be honest, now Im justa touch paranoid bout running it |
I think I get what you mean, then you could just wait for |
this workkkkssssssssssssss. Awesome job, you really saved me some trouble cause i was about to do a global search for something like this. |
|
You might try (on an unmolested It correctly escapes a dot, replaces some chars with their percent encodings to keep the length the same instead of inserting extra slashes, and looks up the location of the
But honestly none of this should make a difference. The dot will match any character - and it's unlikely there's any other string that's |
There is a pull request up which addresses this. It involves replacing That being said, we do have an issue since We've addressed this temporarily by removing RPC redirection from trailing slashes permanently and supporting See https://lists.archlinux.org/pipermail/aur-general/2022-February/036787.html |
surprisingly this one works, i also agree that the @pmarreck 's solution should not differ from this one. Yes, |
The 'filthy' hack worked as a charm for me with
|
this only kinda works. i don't know how to do so with git clone https://aur.archlinux.org/yay-git.git
cd yay-git
sed -i 's:Jguer:mh4ckt3mh4ckt1c4s:g' PKGBUILD
makepkg -si |
it can't, this issue is messing with the very ability to access AUR |
|
It seems that the "/rpc.php" endpoint is no longer supported as described in this issue. Jguer/yay#1684 Although it seems to be available again for a month as a temporary measure. https://gitlab.archlinux.org/archlinux/aurweb/-/commit/101de8e7b18916dd84ae52d39fb853924ea63a42
Before this fix, the AUR badges were showing "not found". See Jguer/yay#1684
Closing this issue as fixed on Fixed by #1685 |
I come across the same issue. Eventhrough it seems that this issue have already been fixed.
|
I am having no problems using yay. What command are you trying to run? |
@needhourger Probably issues with the AUR URL. Please ensure your aururl is set to |
Tanks it already fixed! |
Affected Version
HEAD
Describe the bug
yay
uses/rpc.php
to query the AUR's RPC API. With the release of v6.0.0, this is no longer supported as we no longer host PHP code.Expected behavior
Use
/rpc
to query the AUR's RPC API.Extras
See https://aur.archlinux.org/rpc for documentation on using the RPC. Please stick to what the documentation suggests, as the doc is what is always going to be upheld (or changed if the time comes).
With the new AUR RPC API, trailing slashes are being rewritten to their unslashed counterparts, which seems to be causing some issues as well.
I've made some fixes to rollback some of the issues these changes have caused; see https://lists.archlinux.org/pipermail/aur-general/2022-February/036787.html for more info.
The text was updated successfully, but these errors were encountered: