Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

SetAsSystemHttpProxy method throwing exception on Linux #564

@raivor

Description

@raivor

Hello,

I am trying to set up proxy server to work with Selenium WebDriver. On windows machine better said in Visual Studio everything works well but when put on Linux agent on Azure DevOps it stuck in creating and configuring proxy server.
Running from Linux machine it throws exception when configuring proxy with endpoint.

    this.proxy = new ProxyServer();

    var endPoint = new ExplicitProxyEndPoint(System.Net.IPAddress.Any, 12345, true);
    this.proxy.AddEndPoint(endPoint);
    this.proxy.Start();

    this.proxy.SetAsSystemHttpProxy(endPoint);
    this.proxy.SetAsSystemHttpsProxy(endPoint);
    this.proxy.BeforeRequest += OnRequest;
    this.proxy.BeforeResponse += OnResponse;

System.NullReferenceException : Object reference not set to an instance of an object.
at Titanium.Web.Proxy.ProxyServer.SetAsSystemProxy(ExplicitProxyEndPoint endPoint, ProxyProtocolType protocolType)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions