Repository navigation
Certificate problem #276
Copy link
Copy link
Closed
Description
Activity
Do you have code to reproduce?
I uploaded the code to a repositery:
https://github.com/Sedorikku1949/discolua
As this will be a package to manage a discord bot, a token is required to be put in the test directory (explained in test/README.md)
this is what I got when running it:
[2023-05-21T21:10:34Z TRACE discolua::workers::ws] Connecting to the server... [2023-05-21T21:10:34Z DEBUG tungstenite::client] Trying to contact wss://gateway.discord.gg/?v=10&encoding=json at 162.159.136.234:443... [2023-05-21T21:10:34Z TRACE tungstenite::handshake::client] Request: "GET /?v=10&encoding=json HTTP/1.1\r\nHost: gateway.discord.gg\r\nConnection: Upgrade\r\nUpgrade: websocket\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Key: bMbzv7d9hCnqCNY6TQ2f5w==\r\n\r\n" [2023-05-21T21:10:34Z TRACE tungstenite::handshake::client] Client handshake initiated. [2023-05-21T21:10:34Z TRACE tungstenite::handshake::machine] Doing handshake round. [2023-05-21T21:10:34Z TRACE tungstenite::handshake::machine] Doing handshake round. [2023-05-21T21:10:34Z DEBUG tungstenite::handshake::client] Client handshake done. [2023-05-21T21:10:34Z TRACE discolua::workers::ws] Connected to the server [2023-05-21T21:10:34Z TRACE tungstenite::protocol] Frames still in queue: 0 [2023-05-21T21:10:34Z TRACE tungstenite::protocol::frame::frame] Parsed headers [129, 124] [2023-05-21T21:10:34Z TRACE tungstenite::protocol::frame::frame] First: 10000001 [2023-05-21T21:10:34Z TRACE tungstenite::protocol::frame::frame] Second: 1111100 [2023-05-21T21:10:34Z TRACE tungstenite::protocol::frame::frame] Opcode: Data(Text) [2023-05-21T21:10:34Z TRACE tungstenite::protocol::frame::frame] Masked: false [2023-05-21T21:10:34Z TRACE tungstenite::protocol::frame] received frameseems all works?
- locked and limited conversation to collaborators
on May 23, 2023
Metadata
Metadata
Assignees
Labels
No labels
Hello, i'm trying to setup a websocket using mlua and tungstenite for a lua package, but i get this error when connecting:
But, the weird thing is that, when i run the code on my computer, without executing in lua, it works perfectly.
Does someone know how to get rid of this certificate problem ?