shardlab / discordrb

Discord API for Ruby
MIT License
538 stars 99 forks source link

Problems with TLS/SSL #266

Open suzukiception opened 5 months ago

suzukiception commented 5 months ago

When i try to run the bot, this error appears: [ERROR : websocket @ 2024-06-28 14:23:08.236] An error occurred while connecting to the websocket! [ERROR : websocket @ 2024-06-28 14:23:08.236] Exception: # [ERROR : websocket @ 2024-06-28 14:23:08.236] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:519:in connect' [ERROR : websocket @ 2024-06-28 14:23:08.236] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:519:inobtain_socket' [ERROR : websocket @ 2024-06-28 14:23:08.236] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:569:in connect' [ERROR : websocket @ 2024-06-28 14:23:08.236] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:473:inblock in connect_loop' [ERROR : websocket @ 2024-06-28 14:23:08.236] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:472:in loop' [ERROR : websocket @ 2024-06-28 14:23:08.236] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:472:inconnect_loop' [ERROR : websocket @ 2024-06-28 14:23:08.236] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:168:in block in run_async' [ERROR : websocket @ 2024-06-28 14:23:09.308] An error occurred while connecting to the websocket! [ERROR : websocket @ 2024-06-28 14:23:09.308] Exception: #<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 peeraddr=162.159.136.234:443 state=error: tlsv1 unrecognized name> [ERROR : websocket @ 2024-06-28 14:23:09.308] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:519:inconnect' [ERROR : websocket @ 2024-06-28 14:23:09.308] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:519:in obtain_socket' [ERROR : websocket @ 2024-06-28 14:23:09.308] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:569:inconnect' [ERROR : websocket @ 2024-06-28 14:23:09.308] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:473:in block in connect_loop' [ERROR : websocket @ 2024-06-28 14:23:09.308] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:472:inloop' [ERROR : websocket @ 2024-06-28 14:23:09.308] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:472:in connect_loop' [ERROR : websocket @ 2024-06-28 14:23:09.308] /home/runner/ParallelMountainousHypertalk/.bundle/ruby/3.2.0/gems/discordrb-3.5.0/lib/discordrb/gateway.rb:168:inblock in run_async'

How can i fix this? (I am using Replit, btw)

swarley commented 5 months ago

Replit is generally discouraged as much of their IP range is blocked by discord

suzukiception commented 5 months ago

Replit is generally discouraged as much of their IP range is blocked by discord

Replit is generally discouraged as much of their IP range is blocked by discord

Well, gonna have to migratethe project somewhere. Thanks for the reply!