Coder Social home page Coder Social logo

Comments (6)

outdead avatar outdead commented on August 15, 2024 1

I see, it is Minecraft. I'll check

from rcon.

cezarmathe avatar cezarmathe commented on August 15, 2024 1

I get the same issue:

1.6526817170475295e+09	info	stevebot2/main.go:55	hello, this is stevebot2
1.6526817170477707e+09	debug	stevebot2/main.go:64	main config	{"value": {"DiscordToken":"redacted","RconAddress":"redacted:25565","RconPassword":"redacted","Bot":{"CommandPrefix":"~"},"Steve":{"AllowedCommands":["help","seed","whitelist"]}}}
panic: runtime error: makeslice: len out of range

goroutine 1 [running]:
github.com/gorcon/rcon.(*Conn).auth(0xc000292000, {0xc00002604e?, 0xc00002a04d?})
	/redacted/pkg/mod/github.com/gorcon/[email protected]/rcon.go:206 +0x22a
github.com/gorcon/rcon.Dial({0xc00002a04d, 0x13}, {0xc00002604e, 0x28}, {0x0, 0x0, 0x1?})
	/redacted/pkg/mod/github.com/gorcon/[email protected]/rcon.go:112 +0x196
main.main()
	/redacted/stevebot/cmd/stevebot2/main.go:72 +0x668

It could possibly be that the response size is 0 and it's a runtime error to make a slice of len 0.

dac804a#diff-54f05da6f66887a7de9daf89b89aa66cebefbccc3a9dbbb6c8f3006eba3c1bbfR186-R189

On the side, though, I noticed that my server was not actually running. I haven't tested this with a running server yet, but I'll let you know how it goes - I'm quite confident it will work okay.

So this is more of an issue regarding what happens if the server is down. It's pretty weird, though, as I would've expected to get an error regarding the TCP connection and I noticed that there is error handling logic for that. The issue is on my end probably. I'll post an update when I test with a running server.

UPDATE 1: Same issue with the server running, but I get 2022/05/16 09:26:09 Failed to connect to RCON serverrcon: authentication failed in my server logs.

UPDATE 2: I just noticed that I was using the game port instead of the rcon port. I fixed that and I no longer have this issue.

from rcon.

outdead avatar outdead commented on August 15, 2024 1

I added new error message instead this panic. Can you check this with wrong port on v1.3.3 please? I have no Minecraft server now and can reproduce it only on test mock.

from rcon.

cezarmathe avatar cezarmathe commented on August 15, 2024 1

{"error": "rcon: response from not rcon server"}

haha, yes, this is great!

from rcon.

outdead avatar outdead commented on August 15, 2024

Thanks for you issue!

Tell me please what game causes this panic?

from rcon.

outdead avatar outdead commented on August 15, 2024

Try v1.3.2.

from rcon.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.