barneygale / quarry

Python library that implements the Minecraft network protocol and data types
Other
532 stars 74 forks source link

Can't log into online-mode server while using offline profile #159

Open seahorse1seahorse opened 2 years ago

seahorse1seahorse commented 2 years ago

Trying to connect to a minecraft server and getting this error:

Can't log into online-mode server while using offline profile Traceback (most recent call last): File "/home/user/.local/lib/python3.10/site-packages/quarry/net/protocol.py", line 245, in data_received self.packet_received(buff, name) File "/home/user/.local/lib/python3.10/site-packages/quarry/net/protocol.py", line 267, in packet_received dispatched = self.dispatch((name,), buff) File "/home/user/.local/lib/python3.10/site-packages/quarry/net/protocol.py", line 26, in dispatch handler(buff) File "/home/user/.local/lib/python3.10/site-packages/quarry/net/client.py", line 153, in packet_login_encryption_request raise ProtocolError("Can't log into online-mode server while using" quarry.net.protocol.ProtocolError: Can't log into online-mode server while using offline profile

davidawesome02 commented 2 years ago

Is your server in online mode? If you are making a client which it seams you are, you have to use online mode profile to join

If you are using a proxy, try this factory.online_mode = False from https://github.com/barneygale/quarry/issues/152

look here https://github.com/barneygale/quarry/issues/135 and look here https://github.com/barneygale/quarry/pull/140 for moded ver with support for Microsoft login

andriemc commented 1 year ago

OF COURSE YOU CAN'T. A ONLINE SERVER DOESN'T ACCEPT A OFFLINE PROFILE.