drizzle-mizzle / CharacterAI-Discord-Bot

CharacterAI for your Discord server
MIT License
245 stars 60 forks source link

Access is denied. #81

Closed mansob closed 1 year ago

mansob commented 1 year ago

for some reason i start to get this

10:19:23 Discord Discord.Net v3.10.0 (API v10) 10:19:23 Gateway Connecting 10:19:29 Gateway Connected 10:19:30 Gateway Ready _System.ComponentModel.Win32Exception (5): Access is denied. at System.Diagnostics.NtProcessManager.EnumProcessModulesUntilSuccess(SafeProcessHandle processHandle, IntPtr[] modules, Int32 size, Int32& needed, Int32 filterFlag) at System.Diagnostics.NtProcessManager.GetModules(Int32 processId, Boolean firstModuleOnly) at System.Diagnostics.NtProcessManager.GetFirstModule(Int32 processId) at CharacterAI.Integration.KillChromes(String execPath) at CharacterAI.Integration.LaunchChromeAsync(String customChromeDir, String customExecPath) at CharacterAI_DiscordBot.Program.LaunchChromeAndSetup(Boolean setup)

(using chromium and its on character ai page)

drizzle-mizzle commented 1 year ago

It tried to clear possible running background chrome processes (embedded, not your), but you didn't give the program enough permissions to do that in your system. My bad I didn't make it safer. Never thought it will require any additional permissions inside its own folder, but your system simply permitted the access to running processes list.

If it doesn't affect the work of the bot, just ignore it. If it hangs on, you will either need to run it as administrator, or wait for an update that will be aired soon.

mansob commented 1 year ago

I tried running it as an admin like you said, but I still got the same error, When I ignored it and tried to set a character it gave me :warning: Failed to set a character! and Fetching character info... You need to launch a browser first!

I thought maybe disabling background apps was causing the problem so I turned them back on but it didn't help. I guess I'll just have to wait for an update. Thanks for your help! :DD

drizzle-mizzle commented 1 year ago

forgot to mention it was fixed