air / minecraft-tools

Tools for server and Realms admins
19 stars 6 forks source link

HTTP 404 - Not Found from realms-download.sh #2

Open Swwils opened 6 years ago

Swwils commented 6 years ago

Hello,

Thanks for the tools, trying to get them to pull a realm backup down for use with overviewer - however the script for realms-download is pulling a 404 when being executed:

swwils@PC21:~/minecraft-tools$ ./realms-download.sh
/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:794: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:794: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)

http: warning: HTTP 404 Not Found
Error getting download link, response:

login.sh working fine and gets token, name and id

Is it possible that the endpoint has changed location?

air commented 6 years ago

Thanks for the report @Swwils! I did a bunch of work on the tools today and retested everything with no issues. No changes to this file though. Can you try to repro with latest?

adobley commented 6 years ago

@air I'm seeing the same issue. I was able to determine that I was getting back an empty list from the get world ID call https://github.com/air/minecraft-tools/blob/master/realms-download.sh#L19 It is definitely the right account and I can login/validate ok.

When I hit the mco/client/compatible stage I get back OUTDATED, until I switched my version to 1.13.1 then I get COMPATIBLE. Unfortunately just changing the version in the cookie string didn't resolve the issue. I'll probably poke around at it a bit more, but any suggestions would be helpful.

air commented 6 years ago

I wonder if this is related to the number of worlds you have on your account...

adobley commented 6 years ago

My best guess would be that this would be a difference in how "Minecraft" realms are handled vs "Java Edition" realms. But that is only a wild guess really. I have the former.