Skip to content

Watch request fails with InvalidOperationException #163

Closed
ThreeMammals/Ocelot
#2174
@kick2nick

Description

@kick2nick

There is a log call introduced in 8cda77d that uses PathAndQuery property of created request.

HttpRequest request = requestFactory();
logger.LogDebug("Start streaming {RequestMethod} request for {RequestUri}...", HttpMethod.Get.Method, request.Uri.PathAndQuery);

But HttpRequest created by factory is relative URI, so on attempts to call ObserveLines I'm getting exception in Observable OnError:
Unexpected error while streaming from the Kubernetes API to \"watch v1/Endpoints 'some-service' in namespace dev\".","exceptions":["System.InvalidOperationException: This operation is not supported for a relative URI."," at System.Uri.get_PathAndQuery()"," at KubeClient.ResourceClients.KubeResourceClient.<>c__DisplayClass30_0.<<ObserveLines>b__0>d.MoveNext()

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions