Coder Social home page Coder Social logo

Forced Close Connection about discord4j HOT 9 CLOSED

ronhombre avatar ronhombre commented on June 26, 2024
Forced Close Connection

from discord4j.

Comments (9)

Azn9 avatar Azn9 commented on June 26, 2024 1

"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.

ronhombre avatar ronhombre commented on June 26, 2024 1

@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.

Azn9 avatar Azn9 commented on June 26, 2024 1

@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.

ronhombre avatar ronhombre commented on June 26, 2024 1

@Azn9 I'm migrating to JDA. If the issue persists or not, I'll let you know

from discord4j.

ronhombre avatar ronhombre commented on June 26, 2024 1

@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.

quanticc avatar quanticc commented on June 26, 2024 1

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.

ronhombre avatar ronhombre commented on June 26, 2024 1

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.

Azn9 avatar Azn9 commented on June 26, 2024 1

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.

ronhombre avatar ronhombre commented on June 26, 2024

@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)

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.