RelationalAI / rai-sdk-csharp

The RelationalAI Software Development Kit (SDK) for C#
Apache License 2.0
0 stars 1 forks source link

Deleting a non-existent engine throws exception #27

Closed miazamrai closed 2 years ago

miazamrai commented 2 years ago

Deleting a non-existent engine throws the following exception

Unhandled exception: RelationalAI.Errors.NotFoundException: {"status":"Not Found","message":"engine not found"}

at RelationalAI.Services.Rest.EnsureSuccessResponseAsync(HttpResponseMessage response) in /Users/iazam/dev/rai-sdk-csharp/RelationalAI/Services/Rest.cs:line 285 at RelationalAI.Services.Rest.RequestHelperAsync(String method, String url, Object data, Dictionary2 headers, Dictionary2 parameters) in /Users/iazam/dev/rai-sdk-csharp/RelationalAI/Services/Rest.cs:line 350 at RelationalAI.Services.Rest.RequestAsync(String method, String url, Object data, Dictionary2 headers, Dictionary2 parameters) in /Users/iazam/dev/rai-sdk-csharp/RelationalAI/Services/Rest.cs:line 123 at RelationalAI.Services.Client.DeleteEngineAsync(String engine) in /Users/iazam/dev/rai-sdk-csharp/RelationalAI/Services/Client.cs:line 190 at RelationalAI.Examples.DeleteEngine.Run(String engine, String profile) in /Users/iazam/dev/rai-sdk-csharp/RelationalAI.Examples/DeleteEngine.cs:line 35 at System.CommandLine.NamingConventionBinder.CommandHandler.GetExitCodeAsync(Object returnValue, InvocationContext context) at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.InvokeAsync(InvocationContext context) at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown ---

miazamrai commented 2 years ago

Working as desired.

billscheidel-rai commented 1 year ago

Note: This issue has been migrated to https://relationalai.atlassian.net/browse/RAI-6834.

This link is only accessible to employees of RelationalAI.