Giter Club home page Giter Club logo

Comments (6)

asdfawjbhsdhbasjindh avatar asdfawjbhsdhbasjindh commented on June 25, 2024

it basically works from 2-8 hours and then gives me that error

from dankmemer-farmer.

moleium avatar moleium commented on June 25, 2024

In the first error shown, you can see sslv3 alert handshake failure

then the last error, same thing, but it triggered Max retries exceeded with URL too

because it couldn't fix the handshake failure.

SSL Handshake: used to authenticate data transfers between servers and external systems such as browsers.
I also noticed a kind of reconnection after some hours passed but no SSL error showed. My conclusion that is your SSL Handshake failure was caused by external parties, not from the bot itself, maybe your connection, etc.

You can disable requests verification to resolve it but that wouldn't be secure. by passing the parameterverify=False in SlashCommands.py in every request. use Search & Replace. It would do it automatically without adding it manually.

Replace every line that has this:

req = requests.post('https://discord.com/api/v9/interactions', headers={"authorization": token}, json=payload)

With:

req = requests.post('https://discord.com/api/v9/interactions', verify=False , headers={"authorization": token}, json=payload)

And add those two lines in init.py or bot.py. It doesn't matter, but they should be added to the top lines.

import urllib3
urllib3.disable_warnings()

from dankmemer-farmer.

asdfawjbhsdhbasjindh avatar asdfawjbhsdhbasjindh commented on June 25, 2024

I want to ask, does a VPN
affect this error?

from dankmemer-farmer.

asdfawjbhsdhbasjindh avatar asdfawjbhsdhbasjindh commented on June 25, 2024

also the reconnection was me starting the bot again

from dankmemer-farmer.

moleium avatar moleium commented on June 25, 2024

VPN does affect the connection, especially with SSL handshake failures.

And i meant I did experience some reconnections after some hours passes. but no SSL handhake failure happened

from dankmemer-farmer.

asdfawjbhsdhbasjindh avatar asdfawjbhsdhbasjindh commented on June 25, 2024

ok that makes sense, thanks for your help

from dankmemer-farmer.

Related Issues (15)

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.