drizzle-mizzle / Character-Engine-Discord

(not yet very) Ultimate LLMs aggregator right in your Discord server
https://discord.gg/JtVzgJ8Znh
GNU General Public License v3.0
97 stars 43 forks source link

System.AggregateException #17

Open zifnub opened 6 months ago

zifnub commented 6 months ago

After the last fix I can connect fine but its still throwing this:

Path: E:\LLM\Character-Engine-Discord\puppeteer-chrome


System.AggregateException: One or more errors occurred. (One or more errors occurred. (The handle is invalid.))
 ---> System.AggregateException: One or more errors occurred. (The handle is invalid.)
 ---> System.IO.IOException: The handle is invalid.
   at System.ConsolePal.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at System.ConsolePal.GetCursorPosition()
   at PuppeteerLib.PuppeteerLib.TryToDownloadBrowserAsync(String path)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at CharacterAI.Client.CharacterAiClient..ctor(String customBrowserDirectory, String customBrowserExecutablePath)
   at CharacterEngineDiscord.Services.IntegrationsService.LaunchCaiAsync() in E:\LLM\Character-Engine-Discord\Services\IntegrationsService.cs:line 85
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at CharacterEngineDiscord.Services.IntegrationsService.Initialize() in E:\LLM\Character-Engine-Discord\Services\IntegrationsService.cs:line 74
   at CharacterEngineDiscord.Services.DiscordService.SetupIntegrationAsync() in E:\LLM\Character-Engine-Discord\Services\DiscordService.cs:line 280
drizzle-mizzle commented 6 months ago

What terminal do you use?

zifnub commented 6 months ago

MobaXterm

drizzle-mizzle commented 6 months ago

Try simple bash/zsh. C# IO doesn't pal with exotic consoles for some reason. I'll make it safe from errors like this a bit later

zifnub commented 6 months ago

Thanks, not having any issues when retrying in cmd.