Skip to content

net::ERR_NO_SUPPORTED_PROXIES when a proxy-server includes credentials #12443

Closed

Description

@bughit
  • Electron version: 1.8.4, recent master (0d7becf)
  • Operating system: win7 sp1 x64

Expected behavior

it should navigate using the set proxy

Actual behavior

net::ERR_NO_SUPPORTED_PROXIES is logged in the devtools console

How to reproduce

'use strict';

const {app, BrowserWindow} = require('electron'),
      path = require('path');

let brWin;

app.commandLine.appendSwitch('proxy-server', 'http://user:password@proxy_host:proxy_port');

app.on('ready', () => {
  brWin = new BrowserWindow({
    width: 1366,
    height: 768,
    closable: true,
    show: true,
    frame: true,
    useContentSize: true,
    webPreferences: {
      devtools: true,
      nodeIntegration: false,
      webviewTag: false,
      sandbox: false,
      allowRunningInsecureContent: true,
      offscreen: false,
      webSecurity: true,
      contextIsolation: true,
      //preload: path.join(__dirname, 'preload.js'),
    },
  });
  brWin.loadURL('about:blank');
  brWin.webContents.openDevTools({mode: 'right'});
});

app.on('window-all-closed', () => app.exit());
  • load the above app
  • in the devtools location = 'http://example.org'

Activity

  1. bughit commented on Mar 26, 2018

    @bughit
    ContributorAuthor
  2. bughit commented on Mar 27, 2018

    @bughit
    ContributorAuthor

    @zcbenz

    according #7828 and #625 app.commandLine.appendSwitch('proxy-server', 'http://user:password@proxy_host:proxy_port') should be working

    Did something change with the format? Should this work with any auth that chromium supports in addition to basic (NTLM, Negotiate, etc)?

  3. bughit commented on Mar 27, 2018

    @bughit
    ContributorAuthor

    @zcbenz

    Am I misunderstanding what you're saying here

    You can set the proxy by putting username and password as part of proxy URL.

    because it looks like chromium does not support that?

  4. zcbenz commented on Apr 2, 2018

    @zcbenz
    Contributor

    I was wrong that we could pass credentials in the command line flag, we should update the docs on this since Chromium marked it as won't fix.

  5. shobhitchittora commented on Apr 12, 2018

    @shobhitchittora

    @zcbenz I'm new here and would like to start contributing with this one. Can you point me to the doc which needs updating and also what to update ?

  6. teh-f00l commented on Jun 25, 2018

    @teh-f00l

    Is anyone still working on this issue? If not may I take over?

  7. BeniCheni commented on Aug 19, 2018

    @BeniCheni
    Contributor

    Hello, @zcbenz & @bughit. I analyzed the previous comments and gave this "good first issue" a try with #14198, since there hasn't been any activity since Jun 25. Hope I analyzed the details correctly and did the PR correctly. Looking forward to your review.

  8. Buminta commented on Jun 20, 2021

    @Buminta

    I have same problem! Please give me how to fix it?

  9. nornagon commented on Jun 21, 2021

    @nornagon
    Contributor

    The docs have been updated to indicate that this is not supported when passing a proxy on the command line, so I'm closing this.

  10. hellpain1412 commented on Dec 19, 2023

    @hellpain1412

    Did anyone found a solution to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions