Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.2.7
-
None
-
None
-
1
Description
When attempting to use GetFunctionAsync with a function name that does not exists, I expect that an EventingFunctionNotFoundException should be thrown, but instead System.Net.Http.HttpRequestException is thrown.
Here is the full error:
System.Net.Http.HttpRequestException
|
Response status code does not indicate success: 404 (Not Found).
|
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
|
at Couchbase.Management.Eventing.EventingFunctionManager.GetFunctionAsync(String name, GetFunctionOptions options) in /Users/willbroadbelt/Documents/repos/couchbase/couchbase-net-client/src/Couchbase/Management/Eventing/EventingFunctionManager.cs:line 187
|
I have a test that will reproduces this here: https://review.couchbase.org/c/couchbase-net-client/+/170094/1/tests/Couchbase.IntegrationTests.Management/Management/EventingFunctionManagerTests.cs#144
(Running against 7.0).