BotSharp icon indicating copy to clipboard operation
BotSharp copied to clipboard

Publish exception

Open gkapellmann opened this issue 1 year ago • 2 comments

When running a botsharp project from Visual Studio it starts perfectly well. Swagger opens, and I can use the chat as expected.

But then I publish and try to tun it in a linux envioronment and I get this exception:

verovoice@veronicavoice:~/veronicaVoice$ ./Veronica.Voice.ChatBot Unhandled exception. System.ArgumentException: The value cannot be an empty string. (Parameter 'path') at System.ArgumentException.ThrowNullOrEmptyException(String argument, String paramName) at System.IO.Directory.GetParent(String path) at BotSharp.Core.Plugins.PluginLoader.Load(Action1 loaded, String plugin) at BotSharp.Core.BotSharpCoreExtensions.RegisterPlugins(IServiceCollection services, IConfiguration config) at BotSharp.Core.BotSharpCoreExtensions.AddBotSharpCore(IServiceCollection services, IConfiguration config, Action1 configOptions) at Program.<Main>$(String[] args) in C:\Users\gkapellmann\Documents\C#\Project_Veronica\Veronica_Voice\Veronica.Voice.ChatBot\Program.cs:line 34 at Program.<Main>(String[] args) Aborted (core dumped)

The line it is complaning about is:

string[] allowedOrigins = builder.Configuration.GetSection("AllowedOrigins").Get<string[]>() ?? new[] { "http://0.0.0.0:7041" };

But I have added and removed addresses here and the same problem happens. I have no idea what the problem could be, any ideas?

gkapellmann avatar Oct 03 '24 22:10 gkapellmann

Is this issue still unresolved?

Oceania2018 avatar Mar 23 '25 02:03 Oceania2018

I have not had any progress on this unfortunately. So yes, still unresolved.

gkapellmann avatar Mar 25 '25 13:03 gkapellmann