Giter VIP home page Giter VIP logo

Comments (5)

DenisD3D avatar DenisD3D commented on June 19, 2024 1

Error is happening due to the bot looking to get informations that doesn't exist for websites messages. I'm gonna need to do an update
Thanks for investigating

from mc2discord.

DenisD3D avatar DenisD3D commented on June 19, 2024

Could you send a screen of the message that was sent on the Discord channel when the error occured ?
Denis

from mc2discord.

Microjett avatar Microjett commented on June 19, 2024

Hi Denis,
This was the message sent. The first one directly from Discord worked fine and appeared in MC chat.
But the 2nd comes from another mc server running plexiglass mountain and this one appeared to cause the stacktrace above.
image
Edit: I should say the other server is also using mc2discord to send messaging from mc plexiglass mountain

from mc2discord.

Microjett avatar Microjett commented on June 19, 2024

Hi Denis, Might have found some more about this.
I started with two fresh 1.18.2 forge only servers with no other mods.

Setup both of these with mc2discord and configured two different bots for each server and changed the relay_bot_messages to true in both configs.

With no other changes made to default configs mc2discord was able to relay the server started messages and the player join messages from the other server. but only then crashed with the error in above description when an actual player message was sent.

[13:37:07] [Server thread/INFO] [ne.mi.se.pe.PermissionAPI/]: Successfully initialized permission handlerforge:default_handler [13:37:07] [Server thread/INFO] [Mc2Discord/]: Mc2Discord started as chat-test2#0336 [13:37:09] [fr.denisd3d.mc2discord.shadow.reactor-http-nio-3/INFO] [Mc2Discord/]: Mc2Discord started as chat-test2#0336 [13:37:43] [d4j-events-1/INFO] [minecraft/DedicatedServer]: <Discord - Microjet> test [13:38:13] [d4j-events-3/INFO] [minecraft/DedicatedServer]: <Discord - chat-test1> Microjet joined the game [13:38:24] [d4j-events-2/ERROR] [fr.de.mc.sh.re.co.pu.Operators/]: Operator called default onErrorDropped fr.denisd3d.mc2discord.shadow.reactor.core.Exceptions$ErrorCallbackNotImplemented: java.util.NoSuchElementException: No value present Caused by: java.util.NoSuchElementException: No value present

image

So this issue seems to be related to the player name in discord being used instead of the bots actual name?

from mc2discord.

Microjett avatar Microjett commented on June 19, 2024

Also another note, when using PLAIN_TEXT mode this does seem to work. The above failed testing was using WEBHOOK mode. I also tried to use EMBED mode but the message content was not being passed on to the target server so the target server was having empty messages.
image

from mc2discord.

Related Issues (20)

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.