EventingFunctionManager GetFunctionAsync throws generic HttpRequestException on error

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:

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).

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created February 4, 2022 at 12:23 PM
Updated April 21, 2022 at 1:19 AM
Resolved April 21, 2022 at 1:19 AM
Instabug