Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mono Sockets issue #39

Closed
ajvorobiev opened this issue Mar 9, 2016 · 2 comments
Closed

Mono Sockets issue #39

ajvorobiev opened this issue Mar 9, 2016 · 2 comments

Comments

@ajvorobiev
Copy link

Hi,

I've been having an issue with running the bot under mono in Ubuntu 14.04. When it tries to connect:

Disconnected: You must send data by websocket after websocket is opened!

Unhandled Exception:
System.Exception: You must send data by websocket after websocket is opened!
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at Discord.TaskManager.ThrowException () [0x00000] in <filename unknown>:0
  at Discord.Net.WebSockets.WebSocket.WaitForConnection (CancellationToken cancelToken) [0x00000] in <filename unknown>:0
  at Discord.Net.WebSockets.GatewaySocket.WaitForConnection (CancellationToken cancelToken) [0x00000] in <filename unknown>:0
  at Discord.DiscordClient+<BeginConnect>d__76.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at Discord.DiscordClient+<BeginConnect>d__76.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0
  at Discord.DiscordClient+<Connect>d__74.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.String].GetResult () [0x00000] in <filename unknown>:0
  at hammerbot.HammerBot+<InitializeConnection>c__async0.MoveNext () [0x00000] in <filename unknown>:0

I saw that you mentioned here that you were aware of Mono issues but since the post last year I am unsure whether the fix was pushed or not:

#3

I use 0.9.0-rc3-3

@Auralytical
Copy link
Collaborator

Hey ajvorobiev,

The majority of issues with Mono tend to be cert related, try running certmgr -ssl https://gateway-1.discord.gg in terminal and importing anything it finds.

Mono will be officially supported with the launch of 1.0 (and will have much more useful error messages for cert issues), but a lot of people seem to be running 0.9.3-rc3 just fine under it.

@ajvorobiev
Copy link
Author

Thanks for the prompt response. That did the trick! Imported the 3 certificates and it runs smoothly.

And thanks for this library!

quinchs added a commit to quinchs/Discord.Net that referenced this issue Sep 20, 2021
Add slash command delete operations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants