1Password 6 Beta - Proxy problems [Cannot enter your proxy details yet, will fix]

rcork
rcork
Community Member
edited April 2023 in 1Password 7 for Windows

I have 1Password 6 beta installed on my work laptop. My office has a proxy server, which is configured in Internet Options. When i try add my 1Password for Families account to 1Password 6, i get an error that says "Unable to sign in, please check details provided and your network connection". I suspected it was a proxy issue and confirmed when looking at the logs. The log file shows this error:

System.Net.WebException, The remote server returned an error: (407) Proxy Authentication Required., at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)!
Failed to lookup!


1Password Version: 6
Extension Version: Not Provided
OS Version: Windows 7
Sync Type: 1Password for Families

Comments

  • Hi @rcork,

    Thanks for writing in and we are going to fix this in a future update to use the system's default proxy server and to let you add your own proxy information into the app's settings.

  • Hi @rcork,

    We've just added automatic proxy detection support in the latest app update, 169d, please restart the app to install the latest update. If you don't have it installed anymore, you can find it here: https://rink.hockeyapp.net/apps/0cb99692bcdb47abb89fad56dfd56d0c/

    Let me know if this works now.

  • Wiggerl
    Wiggerl
    Community Member

    I´ve installed the 169d today, and now no more Sync ist working. It doesn´t matter which Proxy-Setting ist set.
    Since this 169d-Update the "no Proxy / Direct Connection" in the Systemsettings doens´t work anymore. :(

  • Zebkha
    Zebkha
    Community Member

    Hi,
    Release 169d installed on my work PC. Proxy settings detected : I'm now able to sync with my Family Vaults, through corporate proxy.
    Thanks a lot.

  • Wiggerl
    Wiggerl
    Community Member

    Sorry, Wrong Alert!
    The Sync via "Auto-Proxy" works perfect!
    I was confused, because the "Search" in the "1Password 6 Beta" not search in the "Username-Fields", it search only in the "Login-Name-Fields".
    In the "Browser-Version" and the Android-App it is possible to search the "Login-Name-Fields" too.

    Is this a Bug in the Beta right?

  • Hi guys,

    Thanks for the confirmations, I'm glad we're making progress in the right direction. We still have some work to do in this area such as supporting PAC files but hopefully, that will be a quick fix.

    @Wiggerl, full text search is not yet implemented in the 1Password 6 Beta app, it only searches for the title and the tags right now. We do plan to implement this but I don't have a timeframe on this.

  • rcork
    rcork
    Community Member

    I'm still unable to connect through my corporate proxy. In Windows Internet Options, i have manually configured proxy server and port. I'm not using a PAC file or the "Automatically detect settings" option. My company uses NTLM authentication (windows credentials). Could that be the issue? The log file still shows:

    System.Net.Http.HttpRequestException, An error occurred while sending the request., at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at AgileBits.OnePassword.Framework.HttpExtensions.<ResponseAsync>d__12.MoveNext() in C:\code\onepassword-rt\AgileBits.OnePassword.Shared\Framework\HttpExtensions.cs:line 278!HTTP ERR 0x80131509, System.Net.WebException, The remote server returned an error: (407) Proxy Authentication Required., at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)! Failed to lookup!

  • Hi @rcork,

    Unfortunately, yes, that would cause it to error out as it can't get your credentials to use the proxy.

    There might be a workaround for this, could you email us that log to support+windowsbeta@agilebits.com and let us know here when you've sent the email, so we can confirm we got it.

  • rcork
    rcork
    Community Member

    Log file sent

  • Thanks, I've got your email and replied to it.

  • cinocode
    cinocode
    Community Member
    edited August 2016

    Hello,

    I am also trying to use 1 password on Windows behind a proxy w/ a pac file. When I try to log into my account, I get 'unable to sign in, check your network'. I got the credentials from scanning a pac file and I know my master password, so they should be good.

    I do not even find a screen to enter any proxy settings. If pac files don't work yet, manual proxy settings would be workaround.

    Here is my log:

    2016-08-01T16:57:47 #Launched at 01.08.2016 16:57:47 +02:00. (0,72 sec) 2016-08-01T16:57:47 1Password 6.0.183d. Environment 4.0.30319.42000. OS Microsoft Windows NT 6.1.7601 Service Pack 1. Platform Win32NT. 64 bit OS = True. 64 bit process = True. 2016-08-01T16:57:47 Deleted previous log file. 2016-08-01T16:57:47 Arguments=. 2016-08-01T16:57:47 Database started: schema=9. (0,06 sec) 2016-08-01T16:57:47 Using database C:\Users\U898296\AppData\Local\1Password\20160514.sqlite. 2016-08-01T16:57:47 Saving log messages: 7. 2016-08-01T16:57:47 Registering system wide hotkey for Ctrl+Alt+# with virtual key code 223. 2016-08-01T16:57:47 Error 80070581 registering 0x3+0xdf hotkey/0! 2016-08-01T16:57:47 Checked helper registration. (0,00 sec) 2016-08-01T16:57:47 Provisional database key is ready. 2016-08-01T16:57:47 Deleted 2 accounts as part of making provisional database key. 2016-08-01T16:57:47 Routed to op://show. (0,02 sec) 2016-08-01T16:57:47 Redirected to welcome for op://show as there is no app key. 2016-08-01T16:57:47 A6 is a FolderAccount with UUID eeac3585cc3b44a083a9763810d970c3. 2016-08-01T16:57:47 Attempting to listen at 6263... 2016-08-01T16:57:54 Routed to op://signin. (0,04 sec) 2016-08-01T16:57:57 Saving log messages: 18. 2016-08-01T16:57:59 Decoded QR_CODE bar code. (0,09 sec) 2016-08-01T16:58:04 A7 is a TeamAccount with UUID . 2016-08-01T16:58:04 A7 decrypted 0/0 keys. (0,00 sec) 2016-08-01T16:58:04 No JSON from GET https://my.1password.com/api/v1/auth/ol______n%40g__.de/wthbejk77nzxwkefcj4x37hete/- with error 0x80131500 and message An error occurred while sending the request.! (0,01 sec)HTTP ERR 0x80131500, System.Net.Http.HttpRequestException, An error occurred while sending the request., at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at AgileBits.OnePassword.Framework.HttpExtensions.<ResponseAsync>d__12.MoveNext() in C:\code\onepassword-rt\AgileBits.OnePassword.Shared\Framework\HttpExtensions.cs:line 281!HTTP ERR 0x80131509, System.Net.WebException, The remote name could not be resolved: 'my.1password.com', at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)! 2016-08-01T16:58:04 Failed to lookup! 2016-08-01T16:58:11 Saving log messages: 24.

    Greetings,
    Ole

  • Hi @cinocode,

    The next update should work with your settings out of the box. Please try this and let me know if it helps:

    1. Open Start, search for NotePad, right-click on it to select Run as Administrator

    2. In NotePad, go to the File Menu > Open, on the bottom right next to the file name, change from Text Documents (*.txt) to All Files (*.*), and then open this file: Program Files (x86) > 1Password 6 > AgileBits.OnePassword.Desktop.exe.config

    3. Search for the <defaultProxy> block and modify it to this:

           <defaultProxy useDefaultCredentials="true">
                <proxy autoDetect="True"/>
            </defaultProxy>
    

    Once you save it, restart the 1Password app, and see if you can connect now.

  • cinocode
    cinocode
    Community Member

    No, I already tried that. :(

    My proxy has username and password if that makes a difference.

  • MikeT
    edited August 2016

    Hi @cinocode,

    Is it stored in the Windows' Credential Manager? Are you actually entering it each time you open your browser?

    1Password 6 Beta right now does not have a place to enter your username/password for the proxy, it would use the stored credentials that Windows have.

  • MikeT
    edited August 2016

    Hi @cincode,

    I see that we're talking to you already via emails, I'll reply to your email and we should keep talking there only, so we don't repeat this twice.

    ref: MFN-65672-851

  • kdnel
    kdnel
    Community Member

    Is there a method for manually configuring the proxy server (name/port) or to have 1Password6 just use the system-wide proxy (netsh winhttp set proxy method)? On my system with the system-wide proxy configured, 1Password6 isn't using it... I can see it attempting to connect direct. I saw there's a proxy username/password option but no explicit way to define the proxy server connection details.

  • kdnel
    kdnel
    Community Member
    edited September 2016

    Think I found the answer. Since 1P6 is written in .NET I looked up how to specify a proxy in a .NET config and found the following article:
    https://msdn.microsoft.com/en-us/library/dkwyc043(v=vs.110).aspx

    I changed the proxy section to the following:

    <defaultProxy>
            <proxy proxyaddress="http://myproxyserver:8888" />
    </defaultProxy>
    

    It still seems to want to try to make a direct connection for something but it does eventually come up with a successful connection to our Team account. Subsequent uses of 1P6 seem to work just fine.

  • mohamedosman
    mohamedosman
    1Password Alumni

    Hey @kdnel, it sounds like you were able to get things working, but there's a piece of your last message I cannot see and I'm not sure exactly what was changed to get things fixed.

    In any case, if you find 1Password having trouble connecting again, drop us a line and we'll do our best to make things more seamless for you.

  • Hi @kdnel,

    I've fixed the formatting in your post. 1Password 6 is using the proxy server listed by the winhttp library.

    Can you run this: netsh winhttp show proxy and let me know what it says, does it match your proxy server or is it a direct connect first and then it listed other servers?

  • magiccyril
    magiccyril
    Community Member

    Hi, don't know if it help but I had same issue netsh winhttp show proxy says me "direct access" but I know I have a proxy. So I changed the proxy settings to the following :
    <defaultProxy useDefaultCredentials="false"> <proxy autoDetect="False" usesystemdefault="False" /> </defaultProxy>
    And it works

  • Hi @magiccyril,

    That would explain why 1Password couldn't connect by default, the system is saying "no proxy, direct access" to 1Password and so we do the same. Unfortunately, we're seeing a few cases where proxy setups aren't passed on to us properly by Windows.

    Hopefully, once we add more fields to the proxy settings view, it'll let you connect without having to deal with the config file.

This discussion has been closed.