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

Publish exception #669

Open
gkapellmann opened this issue Oct 3, 2024 · 0 comments
Open

Publish exception #669

gkapellmann opened this issue Oct 3, 2024 · 0 comments

Comments

@gkapellmann
Copy link

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.

$(String[] args) in C:\Users\gkapellmann\Documents\C#\Project_Veronica\Veronica_Voice\Veronica.Voice.ChatBot\Program.cs:line 34
at Program.(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?

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

1 participant