Open vibrantrida opened 2 months ago
Hi, I can't reproduce this.
Hi, I can't reproduce this.
* What version of Minecraft? * Have you installed authlib-injector on the Minecraft instance in Fjord Launcher (edit instance -> Version -> Install authlib-injector)? It should prompt to install authlib-injector automatically if you try to launch the instance with an authlib-injector account selected in Fjord. * Does the correct skin show up in the top right corner of the Fjord Launcher main window (in the account selection dropdown menu)?
The issue happens in 1.16.5+
Yes, all instances I play have authlib-injector installed
Yes, the correct skin shows in the top-left dropdown menu
Any relevant errors in the Minecraft Log (Edit instance -> Minecraft Log) when you load the singleplayer world (or earlier)? My first idea is that the Domain
setting in your Drasl's config.toml is not set correctly.
You are right, I am getting connection refused error according to the logs
Here's the relevant variables in config.toml
:
# Example: drasl.example.com
Domain = "localhost:25585"
# Example: https://drasl.example.com
BaseURL = "http://localhost:25585"
I don't want to use a reverse proxy since I only plan to run this on the local network
Ah, I haven't tried setting up Drasl without TLS. I'll play around and see if I can get it working, but no promises. Not supporting plain HTTP might be a limitation (or conscious decision) of authlib-injector.
I recommend setting up a reverse proxy with an self-signed certificate. You could use https://caddyserver.com/docs/caddyfile/directives/tls#internal.
Hmm, actually plain HTTP works for me fine. I used localhost
as the Domain
without the :25585
. But I'm not sure that would cause the error you're seeing.
This line of your logs looks relevant:
Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
Is there anything in the Drasl log when you load the world? i.e. any Drasl logs from requests generated by the Minecraft client rather than Fjord Laucnher?
There is no other logs on Drasl's side other than when Fjord sent a request to it.
A couple more things to check:
http://localhost:25585/authlib-injector
.[authlib-injector] [INFO] Authentication server: http://localhost:25585/authlib-injector
[authlib-injector] [WARNING] You are using HTTP protocol, which is INSECURE! Please switch to HTTPS if possible.
If that doesn't help, the next thing I would do to debug is to man-in-the-middle the traffic between the Minecraft client and Drasl. It looks like the client is sending requests to the wrong place (something, probably not Drasl, is responding with "Internal server error"). I use mitmproxy for this but there are alternatives.
Then in Fjord Launcher, you'll need to go to Edit Instance -> Settings -> Java -> Java arguments and add
-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8080 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=8080
to proxy traffic through mitmproxy (or whatever).
There's a little more setup involved if you want to decrypt HTTPS traffic, but that might not be necessary here. Feel free to ask in https://matrix.to/#/!nntYkUIkaZiKmXZYne:matrix.org?via=matrix.org&via=envs.net&via=besties.house if you want more guidance.
Operating System
Windows
Version of Fjord Launcher
Fjord Launcher 8.4.2
Version of Qt
I dont know what Qt version 8.4.2 uses
Description of bug
An authlib-injector account with a self-hosted drasl server on docker doesn't have a skin even in single-player world
On Fjord Launcher's Accounts page, it shows that the status for the drasl authlib-injector account is "Ready".
On Docker I can see that Fjord requested for the skin, and I can confirm that there are no errors, the status code is 200.
Steps to reproduce
Suspected cause
No response
This issue is unique