403 forbidden when getting capes
jvyden opened this issue · 5 comments
jvyden commented
When launching the game, this warning appears:
[main/INFO] [STDERR]: [me.rigamortis.seppuku.impl.management.CapeManager:downloadCapeUsers:106]: java.io.IOException: Server returned HTTP response code: 403 for URL: http://seppuku.pw/files/capes.txt
However, accessing http://seppuku.pw/files/capes.txt with a browser seems to work fine.
uoil commented
Could be due to adding https to the site, does it still happen?
jvyden commented
Yeah, it still happens.
jvyden commented
Seems to work just fine on curl, just that it's a 301.
jvyden:/home/jvyden>curl http://seppuku.pw/files/capes.txt -v
* Trying 2606:4700:3035::681b:8bf7:80...
* Connected to seppuku.pw (2606:4700:3035::681b:8bf7) port 80 (#0)
> GET /files/capes.txt HTTP/1.1
> Host: seppuku.pw
> User-Agent: curl/7.71.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Date: Wed, 02 Sep 2020 02:43:45 GMT
< Transfer-Encoding: chunked
< Connection: keep-alive
< Cache-Control: max-age=3600
< Expires: Wed, 02 Sep 2020 03:43:45 GMT
< Location: https://seppuku.pw/files/capes.txt
< cf-request-id: 04ee4bf80900000c9115b9b200000001
< Server: cloudflare
< CF-RAY: 5cc3e2a009270c91-EWR
<
* Connection #0 to host seppuku.pw left intact
And yes, the data does return when using https.
It could just be a simple fix of pointing seppuku towards https.
uoil commented
Changed the cape manager to point to https, lmk if that fixed it on your end too
uoil commented
Fixed in latest commit 4c40e70ed9eb2c8caca9ddd8d0707d4c50c741b8