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

403 forbidden when getting capes #42

Closed
jvyden opened this issue Jul 9, 2020 · 5 comments
Closed

403 forbidden when getting capes #42

jvyden opened this issue Jul 9, 2020 · 5 comments

Comments

@jvyden
Copy link
Contributor

jvyden commented Jul 9, 2020

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
Copy link
Member

uoil commented Aug 30, 2020

Could be due to adding https to the site, does it still happen?

@jvyden
Copy link
Contributor Author

jvyden commented Sep 2, 2020

Yeah, it still happens.

@jvyden
Copy link
Contributor Author

jvyden commented Sep 2, 2020

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
Copy link
Member

uoil commented Sep 11, 2020

Changed the cape manager to point to https, lmk if that fixed it on your end too

@uoil
Copy link
Member

uoil commented Nov 2, 2020

Fixed in latest commit 4c40e70ed9eb2c8caca9ddd8d0707d4c50c741b8

@uoil uoil closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants