Skip to content
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

[Bug]: PaperMC Api Url endpoint modified #4727

Open
Neimolon opened this issue Jan 2, 2025 · 2 comments
Open

[Bug]: PaperMC Api Url endpoint modified #4727

Neimolon opened this issue Jan 2, 2025 · 2 comments
Milestone

Comments

@Neimolon
Copy link

Neimolon commented Jan 2, 2025

User story

As a user, I experienced error updating server throug pmcserver command who crashes the server instance

Game

PaperMC

Linux distro

Ubuntu 22.04

Command

command: update

Further information

https://papermc.io/api/v2/projects:

image

The PaperMC URL which privedes build info has changed... need to be updated to: https://api.papermc.io/v2/projects

Fix:

image

Relevant log output

linuxgsm@a81cd16d04e0:/app$ ./pmcserver update
[  OK  ] Updating pmcserver: Checking local build: papermc.ioparse error: Invalid numeric literal at line 1, column 10
parse error: Invalid numeric literal at line 1, column 10
parse error: Invalid numeric literal at line 1, column 10
parse error: Invalid numeric literal at line 1, column 10
[  OK  ] Updating pmcserver: Checking for update: papermc.io

Steps to reproduce

  1. go to app directory and launch ./pmcserver update
  2. Outputs this error:

linuxgsm@a81cd16d04e0:/app$ ./pmcserver update
[ OK ] Updating pmcserver: Checking local build: papermc.ioparse error: Invalid numeric literal at line 1, column 10
parse error: Invalid numeric literal at line 1, column 10
parse error: Invalid numeric literal at line 1, column 10
parse error: Invalid numeric literal at line 1, column 10
[ OK ] Updating pmcserver: Checking for update: papermc.io

@Jakesta13
Copy link

Just adding my comment here to also express how flipping annoying this change to their API URL was.

PaperMC literally had no reason to do this other than trying to make a point, which causes issues like these unnecessary.

Broke my own private server and it took me embarrassingly long to figure out why it broke (I kept thinking my own scripting unrelated to PaperMC was just broken as I had updated it the night before the API change and the server was set to update the next day...)

@ben-2357
Copy link

ben-2357 commented Jan 7, 2025

I would also like to add that there is a cron entry already in the container:

*/60 * * * * /app/pmcserver update > /dev/null 2>&1

I don't know if this is intentional, but it is very annoying because I'd like to set my own update interval without having to modify the actual application code. I didn't think it was necessary to make an issue for such a small problem. Thanks!

@dgibbs64 dgibbs64 added this to the v24.3.0 milestone Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New Issues
Development

No branches or pull requests

4 participants