系统 OSX
shadowsocks 设置了http代理
我用python的requests库去post一个内网的url,报错,如下:
<html>↵<head>↵ <title>500 Internal Privoxy Error</title>↵ <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>↵<body>↵<h1>500 Internal Privoxy Error</h1>↵<p>Privoxy encountered an error while processing your request:</p>↵<p><b>Could not load template file <code>forwarding-failed</code> or one of its included components.</b></p>↵<p>Please contact your proxy administrator.</p>↵<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory. The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file. (It's typically the Privoxy install directory, or <code>/etc/privoxy/</code>).</p>↵</body>↵</html>↵
关掉全局代理试试
在 2017年2月8日,18:11,xiazhibin notifications@github.com 写道:
系统 OSX
shadowsocks 设置了http代理我用python的requests库去post一个内网的url,报错,如下:
↵
↵500 Internal Privoxy Error ↵ ↵↵500 Internal Privoxy Error
↵Privoxy encountered an error while processing your request:
↵Could not load template file
↵forwarding-failedor one of its included components.Please contact your proxy administrator.
↵If you are the proxy administrator, please put the required file(s)in the
↵↵↵(confdir)/templatesdirectory. The location of the(confdir)directory is specified in the main Privoxyconfigfile. (It's typically the Privoxy install directory, or/etc/privoxy/).—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/shadowsocks/ShadowsocksX-NG/issues/235, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8zUTfkAuDgOd_R7cCiK7v08LI4QKWsks5raZS-gaJpZM4L6nZk.
关掉全局代理试试
试过了,没有效果。
如果直接把http代理关了,会报连接不上代理
ProxyError: HTTPConnectionPool(host='127.0.0.1', port=1088): Max retries exceeded with url: http://example.local/a/b (Caused by ProxyError('Cannot connect to proxy.'
已解决
@xiazhibin 你是如何解决问题的?我也出现了类似的情况
我现在这也是,google这些网站倒进得去,user-rule.txt自己添加的网站现在反而进不去了,这是什么情况啊?
说一下 怎么解决的呀
怎么解决的???
@latinisation 说一下怎么解决的
关掉全局代理试试
↵
…
在 2017年2月8日,18:11,xiazhibin @.*> 写道: 系统 OSX shadowsocks 设置了http代理 我用python的requests库去post一个内网的url,报错,如下: ↵500 Internal Privoxy Error ↵ ↵↵500 Internal Privoxy Error
↵Privoxy encountered an error while processing your request:
↵Could not load template file
↵forwarding-failedor one of its included components.Please contact your proxy administrator.
↵If you are the proxy administrator, please put the required file(s)in the
↵↵↵ — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#235>, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8zUTfkAuDgOd_R7cCiK7v08LI4QKWsks5raZS-gaJpZM4L6nZk.(confdir)/templatesdirectory. The location of the(confdir)directory is specified in the main Privoxyconfigfile. (It's typically the Privoxy install directory, or/etc/privoxy/).
可以的,我关掉代理就行了!
关掉代理 还怎么用, 什么垃圾软件
@xiazhibin 你是如何解决问题的?我也出现了类似的情况
其实比较简单。你需要注意py运行的时候的环境变量。你试试print(os.environ) 看看里面环境变量有没有http_proxy,有的话,其实流量就走了代理。如果有这个环境变量,你就pop出来就好了。
因为我的程序是在docker里面跑的,我的docker设置了http代理。导致这个问题。如果是这样的话,你可以把内网的url加入到noproxy配置里面
关掉代理 还怎么用, 什么垃圾软件
老哥,稍安勿躁。不用关掉的。有一说一,这个是挺好用的APP
我的体验是ALL_PROXY和http_proxy一起设置就会导致这个结果