Comments (5)
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.
Could you send a screen of the message that was sent on the Discord channel when the error occured ?
Denis
from mc2discord.
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.
Edit: I should say the other server is also using mc2discord to send messaging from mc plexiglass mountain
from mc2discord.
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
So this issue seems to be related to the player name in discord being used instead of the bots actual name?
from mc2discord.
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.
from mc2discord.
Related Issues (20)
- Console Error - Did not observe any item or terminal signal within 3000ms in 'publishOn' HOT 1
- Source emited more than one item Error HOT 4
- Current emoji code doesnt support animated emojis. HOT 4
- [1.12.2][Feature Request] Ignore cancelled chat events HOT 3
- 1.12.2 mod ver 3.2.11 HOT 4
- 1.20.1 Console Errors? Slow minecraft to discord translation. HOT 2
- 1.20.1 "Source was empty" HOT 4
- 1.19.2 HOT 7
- [1.12.2] Server crashing on wrong `/tellraw` command HOT 2
- [1.12.2] Wrong image message HOT 2
- [1.20.1] Formatting not working. Bot name shows in the message & Discord Name doesn't get shown in-game. HOT 9
- Server Crash on world load HOT 3
- Datapacks fail to load when starting a server that has a datapack with a load or tick function installed HOT 4
- Hi is there a way to access the code of the bot to change the format of the messages sent to the server ? HOT 2
- In game chat not going to discord HOT 4
- fabric 1.19.2 HOT 4
- Mixin log spam HOT 1
- Msgs go into nowhere HOT 1
- everything working but / commands and mc chat HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mc2discord.