|
|
#1 |
|
Member
![]() Posts: 21
Karma: 14
Join Date: Sep 2009
Device: Kindle 2
|
Incorrect proxy detection on Windows [0.6.19]
Hi,
I'm running Calibre 0.6.19 on Windows, and I have a problem with the proxy detection. Calibre thinks that I have a proxy defined: Code:
C:\Program Files\Calibre - E-book Management>calibre-debug -c "from calibre import get_proxies; print get_proxies()"
Unable to detect proxy settings: need more than 1 value to unpack
Using proxies: {'http': 'proxy:8080', 'https': 'proxy:8080'}
{'http': 'proxy:8080', 'https': 'proxy:8080'}
To be precise, Calibre is reading from HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings\ProxyServer [or perhaps HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Internet Settings], but is ignoring HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Internet Settings\ProxyEnable. For some reason, the proxy server is defined in both HKCU and HKLM, but ProxyEnable only exists in HKLM. Note that with 0.6.18, I didn't have this problem (since it read from the environment variable http_proxy), but it did have a problem parsing the format I gave (http://proxy:8080/). I think that for Windows, following the IE proxy settings is probably more correct, even though personally I prefer environment variables. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,600
Karma: 28548974
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As far as I know, proxy settings should be read from HKCU not HKLM, see for example
http://blogs.technet.com/heyscriptin...xy-server.aspx |
|
|
|
|
|
#3 |
|
Member
![]() Posts: 21
Karma: 14
Join Date: Sep 2009
Device: Kindle 2
|
could be, but my experience suggests that when toggling the proxy on/off, only HKLM is affected. In fact, I just tried this with a new windows install [well, not new, but one never configured to use a proxy] and saw the same thing
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,600
Karma: 28548974
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What software are you using to toggle the proxy?
|
|
|
|
|
|
#5 |
|
Member
![]() Posts: 21
Karma: 14
Join Date: Sep 2009
Device: Kindle 2
|
Originally I was using something in-house from my company, but I also tried using the Windows "Internet Options" dialog
|
|
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,600
Karma: 28548974
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
OK open a ticket for it and I'll investigate when I have some time.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calibre 0.6.14 incorrect publish date | elmoglick | Calibre | 16 | 02-09-2011 02:24 PM |
| sorry, still about proxy | Valio | Calibre | 1 | 11-06-2009 10:13 AM |
| application configuration incorrect | Willo142 | Calibre | 2 | 09-15-2009 12:35 PM |
| Incorrect Date on Input | kazbates | Calibre | 2 | 03-19-2009 12:08 AM |
| Proxy authentication problems (I have no proxy) | fogus | Calibre | 16 | 03-08-2009 01:27 PM |