-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Unable to fetch/send metadata of connected players: list index out of range] #9
Comments
Interesting thanks! Seems like another person #7 (comment) also is having the same problem as you. If you could provide some of this information it would help us get down to the bottom of this:
Currently it's difficult for me to reproduce so all these questions will help me try and get this error myself, |
I pushed a possible fix for this issue in: baf0b93 Turns out it might be from our side making assumptions about the data PalWorld sends us. I couldn't reproduce the error naturally, so this was tested using intentionally modifying the information. LMK if this fixes it after you update the bot! |
Hello, Q1: What operating system is the PalWorld server and Discord Bot hosted on? A: Ubuntu. Q2: Are they on the same machine? A: Yes. Q3: How many players are present in your server at the time that the command was called? A: This has happened with 12 players on, But it has done it before with less players. Extra add on: Also I would like to let you know that even tho it was failing, rebooting it didn't fix it, Something I noticed was that with another Rcon running on a different Ubuntu OS/IP on the same machine (As a CT), I was able to still pull the showplayers command via Rcon, Something I do notice is after X time it will re force me to run the command to connect to Rcon on this on I was using before I got this discord bot one. (I am unsure if palworld kills the connection or it's the Rcon program I am using on the second OS). Q4: How often is the command called? A:I can call it as many times as I want in a row without an issue, It just seems to error or time out after awhile. Thanks, |
I just did a reboot & It updated. |
Now there is an issue where it's only showing 3 people online, When there is 9 on currently. |
Thanks, I think that narrows it down for us actually. Does one of the player's name have spaces in it? Or does someone have a comma in their name? It actually seems our parsing logic did not cover for this edge case |
There is a person with that has a |
Gotcha thanks, I'll try to get this promptly fixed |
This may provide a possible fix, I still cannot reproduce the error naturally, but have an idea why it might occur. I made some tests cases on my end to test, and now added more loggers to narrow down the problem in case it happens again.
I hate to ping you on this issue once more, but I just pushed a commit: c0f085a That MIGHT help us figure out what is happening.. I still cannot reproduce the error naturally, so I used test cases with the names you provided me and some names with commas. Do let me know what you see in the command logs if you get around to testing it. Thanks so much for your help on debugging EDIT: I just realized, that it might be possible for someone to play palworld without a steamID ? and that the command may be skipping those players. I will need further confirmation |
I don't mind being pinged. |
Yes! Feel free to add me on discord, my discord is: |
Added. |
Mine is: |
Issue has not arisen since latest build, closing issue |
Every so often in the discord server it will throw the error:
Unable to process your request
The console error:
2024-02-01 20:04:17,373 - client - INFO - Setting up RCON connection
2024-02-01 20:04:17,373 - client - DEBUG - Fetching online players
2024-02-01 20:04:17,417 - main - ERROR - Unable to fetch/send metadata of connected players: list index out of range
It does get a little annoying as we rely on this to work all the time, I love the thing you have made :)
I would at least like to know why this happens and if this can be fixed/When it will be fixed?
This was working before and I have not touched the configs, It just seems to happen from time to time.
The text was updated successfully, but these errors were encountered: