Skip to content

Possible to use with SSL #12

Description

@ArduinoMasterInfernal

Hi, nice job for this bot, it work fine without SSL on IRc Server.

When i try to use this bot with an ssl irc server i got :

Run-Bot : System.Management.Automation.MethodInvocationException: Exception lors de l'appel de «Flush» avec «0»
argument(s): «Impossible d'écrire les données sur la connexion de transport : Une connexion établie a été abandonnée
par un logiciel de votre ordinateur hôte.» ---> System.IO.IOException: Impossible d'écrire les données sur la
connexion de transport : Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte. --->
System.Net.Sockets.SocketException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte
à System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
--- Fin de la trace de la pile d'exception interne ---
à System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
à System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
à CallSite.Target(Closure , CallSite , Object )
--- Fin de la trace de la pile d'exception interne ---
à System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception
exception)
à System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
à System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
à System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Au caractère C:\Users\mytestenvuser\Documents\Ircd\powershell.ps1:603 : 17

  •             $bot.Writer.Flush()
    
  •             ~~~~~~~~~~~~~~~~~~~
    

Message:

Line : BOT_CONNECTED

Prefix :

Command : BOT_CONNECTED

CommandCode : BOT_CONNECTED

ArgumentString :

Arguments : {}

Text :

Target :

Time : 15/02/2019 11:12:42

SenderNickname :

SenderName :

SenderHost :

Bot.State:

Bot:

ServerName : 192.168.22.137

ServerPort : 6697

Channels : #general

TextEncoding : System.Text.ASCIIEncoding

Name : SRV-MAIN

State : {}

BotScript : C:\Users\mytestenvuser\Documents\Ircd\hellobot.ps1

Connection : System.Net.Sockets.TcpClient

NetworkStream : System.Net.Sockets.NetworkStream

Reader : System.IO.StreamReader

Writer : System.IO.StreamWriter

InteractiveDelay : 100

InactiveDelay : 1000

Running : True

CurrentError : Exception lors de l'appel de «Flush» avec «0» argument(s): «Impossible d'écrire les données

sur la

connexion de transport : Une connexion établie a été abandonnée par un logiciel de votre ordinateur

hôte.»

TimerInterval : 0

StartTime : 15/02/2019 11:12:42

LastTick :

Nickname : SRV-MAIN

Description : Based on -- http://github.com/alejandro5042/Run-IrcBot

NicknameCounter : 1

ApiVersion : 1

Au caractère C:\Users\mytestenvuser\Documents\Ircd\powershell.ps1:778 : 13

  •         Run-Bot 'BOT_CONNECTED' $bot
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Run-Bot

** Disconnected [15/02/2019 11:12:43]

Exception lors de l'appel de «Peek» avec «0» argument(s): «Impossible de lire les données de la connexion de transport
: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.»
Au caractère C:\Users\mytestenvuser\Documents\Ircd\powershell.ps1:809 : 24

  • ... while ($bot.Running -and ($bot.NetworkStream.DataAvailable -or $ ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException

Do you have any idea how to use your bot with ssl irc server ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions