zhiqiang's recent timeline updates
zhiqiang

zhiqiang

V2EX member #27868, joined on 2012-10-09 16:49:40 +08:00
npm 遇到 E407 代理验证错误但代理 wget 正常
Node.js  •  zhiqiang  •  May 9, 2024  •  Lastly replied by former
11
慎用虚拟信用卡支付或充值 chatgpt
问与答  •  zhiqiang  •  Jun 4, 2023  •  Lastly replied by zhiqiang
41
有人 gpt-4 API 申请通过了的吗?
问与答  •  zhiqiang  •  Apr 10, 2023  •  Lastly replied by zhiqiang
27
chatgpt api 经常 timeout 超时
问与答  •  zhiqiang  •  Apr 1, 2023  •  Lastly replied by Her0
6
用 vue3 跨端写小程序,千万别用 taro
程序员  •  zhiqiang  •  Dec 19, 2022  •  Lastly replied by lin07hui
36
腾讯会议甭了?
问与答  •  zhiqiang  •  Aug 29, 2022  •  Lastly replied by oygh
1
腾讯云续费很贵,有办法吗
问与答  •  zhiqiang  •  Nov 1, 2022  •  Lastly replied by zhiqiang
30
威联通 QNAS 的 download stations 连 PT 没有速度?
NAS  •  zhiqiang  •  Mar 2, 2022  •  Lastly replied by GTSERIESX
29
zhiqiang's recent replies
@dhuzbb 请问家庭宽带和小服务器,可以假设个人网站吗?个人博客,流量也不大,绑定域名,正常 https 443 端口。
不对。我搞错了。还是不行。
@NessajCN 还真行。。。这是为什么?之前从没看见过这种写法。
一个更诡异的是,pnpm 没有问题。只有 npm 有问题。
搜到一个可能有用的信息。我这个代理在其它还没升级到 24.04 的服务器上没问提。看来 24.04 的 ubuntu 或者新版本的 npm 升级了验证体系?

The dreaded NTLM

There is an HTTP status code 407 (proxy authentication required), which is the more correct way of saying it's the proxy rather than the destination server that's rejecting your request. That code plagued me for the longest time until after a lot of time on Google, I learned my proxy used NTLM authentication. HTTP basic authentication wasn't enough to satisfy whatever proxy my corporate overlords had installed. I resorted to using Cntlm on my local machine (unauthenticated), then had it handle the NTLM authentication with the upstream proxy. Then I had to tell all the programs that couldn't do NTLM to use my local machine as the proxy - which is generally as simple as setting HTTP_PROXY and HTTPS_PROXY. Otherwise, for npm use (as @Agus suggests):

npm config set proxy http://proxy.example.com:3128
npm config set https-proxy http://proxy.example.com:3128
@arfaWong 换国内源一样的错误。我的理解是代理那一层就出错了,还没访问最终目的地。

$ npm config set registry http://mirrors.cloud.tencent.com/npm/
$ npm install typescript
npm ERR! code E407
npm ERR! 407 Proxy Authentication Required - GET http://mirrors.cloud.tencent.com/npm/typescript
@NessajCN ~/.npmrc 是空的。如果设置 npm config 之后是

```
https-proxy=http://user123:[email protected]:3128/
proxy=http://user123:[email protected]:3128/
```

但无论是否设置,都是 E407 错误。环境变量设置了 https_proxy 、all_proxy 、http_proxy ,都指向上面这个代理。
@will800 技术类都用 chatgpt 了。现在发现 gpt 解决不了的,Google 一般也搜不到。所以现在都不怎么用 Google 了。
@lchkid 二维码或小程序链接还是太麻烦了,而且不直观。
@whileFalse 认证要钱。300 一年。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   895 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 22:29 · PVG 06:29 · LAX 15:29 · JFK 18:29
♥ Do have faith in what you're doing.