Skip to content

Support Custom / Default Proxy #63

@ckpearson

Description

@ckpearson

I'm currently trying to get this working in our TeamCity environment, which unfortunately due to all the usual corporate nonsense is in a proxied setup.

Trying to run this I'm getting "System.Net.WebException: ... Proxy Authentication Required".

There are proxy details configured in the internet options (default IE settings) for the machine and these are correct.

I've encountered this issue before when working with OctoKit myself, and a fix was to initialise the github client with a declaration to use the default proxy:

var webProxy = new WebProxy("proxyAddress", true);
client = new GitHubClient(new Connection(new ProductHeaderValue(ProductName), new HttpClientAdapter(webProxy)))

I've even tried adding a `GitReleaseManager.exe.config" file in the chocolatey directory where the exe is placed, with the following content:

<configuration>
    <system.net>
        <defaultProxy enabled="true">
            <proxy usesystemdefault="True"/>
        </defaultProxy>
    </system.net>
</configuration>

This isn't having the desired effect though.

CHAT ROOM I couldn't access this due to corporate policy (yaaaay)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions