Comments (9)
"An existing connection was forcibly closed by the remote host"
This means that either Discord's server or any router in between your computer/server and Discord's server is closing the connection, this is not a Discord4J issue.
from discord4j.
@Azn9 This should be a Discord4J issue. I run a Discord.js version of the bot without any problem. It does the same thing my bot does. I even tried turning off all my firewalls. Discord4J is not able to persist the connection, it seems
from discord4j.
@ronhombre Java and JavaScript are two different languages that handle exceptions and networks differently. I do not have sufficient knowledge in JS to compare them and tell you why it may work in one and not in the other. However, if that was really a D4J issue, you would see the package com.discord4j
in the logs. Here, only netty (the network library used) appears.
And I reiterate, the error message tells you exactly what happened, this is not a client issue but the result of the connection being closed by either Discord's server or any server in between.
from discord4j.
@Azn9 I'm migrating to JDA. If the issue persists or not, I'll let you know
from discord4j.
@ronhombre Java and JavaScript are two different languages that handle exceptions and networks differently. I do not have sufficient knowledge in JS to compare them and tell you why it may work in one and not in the other. However, if that was really a D4J issue, you would see the package
com.discord4j
in the logs. Here, only netty (the network library used) appears. And I reiterate, the error message tells you exactly what happened, this is not a client issue but the result of the connection being closed by either Discord's server or any server in between.
To be honest, I had Discord4J logs suppressed. I didn't think of checking them. It's too late now
from discord4j.
Thanks. This is an external issue we can do something about. The network library is trying to reuse a connection to Discord that has been closed remotely. We're adding a default that can evict a connection so it's recreated before a component we can't control closes it. reactor/reactor-netty#1774 (comment)
from discord4j.
Thanks. This is an external issue we can do something about. The network library is trying to reuse a connection to Discord that has been closed remotely. We're adding a default that can evict a connection so it's recreated before a component we can't control closes it. reactor/reactor-netty#1774 (comment)
Thanks for letting me know. This is the answer I've been looking for. I'm not dumb enough not to know if my internet sucks or Firewall is blocking Discord as one of the contributors here made it seem
from discord4j.
That's just completely disrespectful. I took some of my time to answer you, and the issue is, as I said NOT caused by D4J, but by netty, which I am not a contributor of.
from discord4j.
@Azn9 After migrating to JDA, I don't have this issue anymore. Definitely a Discord4J issue. Letting you know as I said
from discord4j.
Related Issues (20)
- Jackson Error when entering DM channel option in slash command HOT 2
- Long response to buttons HOT 2
- getParent in a ThreadChannel return a cast error HOT 5
- Add support for `thread_id` and `thread_name` in webhook execution
- Bot freezes after about 100 button presses and many button presses are missed HOT 8
- Issue with Receiving Messages in Threads
- Add support for the `enforce_nonce` parameter on message creation HOT 1
- Add support for the `applied_tags` parameter on webhooks
- Use `emoji_id`, `emoji_name` and `emoji_animated` fields instead of `emoji` in onboarding prompt creation or update
- Add support for the Get and Edit Current Application endpoints
- Add missing fields in the `ApplicationInfo` object HOT 1
- Fix the `PositionModifyRequest` object and the "Modify Guild Channel Positions" request
- Rename the sticker pack route as it is no longer required to have a nitro subscription HOT 1
- Add support for the `GUILD_MEDIA` channel type
- Add some utilities to mention the guild navigation channels HOT 3
- Add missing audit log events HOT 1
- Replace the `Guild#getFeatures` return value to a `FeatureSet` instead of a `Set<String>` HOT 2
- Dependency com.discord4j:stores-api in /common module seems to be in the wrong scope.
- Support Java 21 in CI
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 discord4j.